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
//Circ (gs.easing.Circ)
package gs.easing {
public class Circ {
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = ((_arg1 / _arg4) - 1);
return (((_arg3 * Math.sqrt((1 - (_arg1 * _arg1)))) + _arg2));
}
public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return (((-(_arg3) * (Math.sqrt((1 - (_arg1 * _arg1))) - 1)) + _arg2));
}
public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return ((((-(_arg3) / 2) * (Math.sqrt((1 - (_arg1 * _arg1))) - 1)) + _arg2));
};
_arg1 = (_arg1 - 2);
return ((((_arg3 / 2) * (Math.sqrt((1 - (_arg1 * _arg1))) + 1)) + _arg2));
}
}
}//package gs.easing
Section 3
//TweenEvent (gs.events.TweenEvent)
package gs.events {
import flash.events.*;
public class TweenEvent extends Event {
public var info:Object;
public static const UPDATE:String = "update";
public static const START:String = "start";
public static const version:Number = 0.9;
public static const COMPLETE:String = "complete";
public function TweenEvent(_arg1:String, _arg2:Object=null, _arg3:Boolean=false, _arg4:Boolean=false){
super(_arg1, _arg3, _arg4);
this.info = _arg2;
}
override public function clone():Event{
return (new TweenEvent(this.type, this.info, this.bubbles, this.cancelable));
}
}
}//package gs.events
Section 4
//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 5
//BevelFilterPlugin (gs.plugins.BevelFilterPlugin)
package gs.plugins {
import gs.*;
import flash.display.*;
import flash.filters.*;
public class BevelFilterPlugin extends FilterPlugin {
public static const VERSION:Number = 1;
public static const API:Number = 1;
public function BevelFilterPlugin(){
this.propName = "bevelFilter";
this.overwriteProps = ["bevelFilter"];
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
_target = _arg1;
_type = BevelFilter;
initFilter(_arg2, new BevelFilter(0, 0, 0xFFFFFF, 0.5, 0, 0.5, 2, 2, 0, ((_arg2.quality) || (2))));
return (true);
}
}
}//package gs.plugins
Section 6
//BezierPlugin (gs.plugins.BezierPlugin)
package gs.plugins {
import gs.*;
import gs.utils.tween.*;
public class BezierPlugin extends TweenPlugin {
protected var _future:Object;
protected var _orient:Boolean;
protected var _orientData:Array;
protected var _beziers:Object;
protected var _target:Object;
protected static const _RAD2DEG:Number = 57.2957795130823;
public static const VERSION:Number = 1.01;
public static const API:Number = 1;
public function BezierPlugin(){
_future = {};
super();
this.propName = "bezier";
this.overwriteProps = [];
}
override public function set changeFactor(_arg1:Number):void{
var _local2:int;
var _local3:String;
var _local4:Object;
var _local5:Number;
var _local6:uint;
var _local7:Number;
var _local8:int;
var _local9:Object;
var _local10:Boolean;
var _local11:Number;
var _local12:Number;
var _local13:Array;
var _local14:Number;
if (_arg1 == 1){
for (_local3 in _beziers) {
_local2 = (_beziers[_local3].length - 1);
_target[_local3] = _beziers[_local3][_local2][2];
};
} else {
for (_local3 in _beziers) {
_local6 = _beziers[_local3].length;
if (_arg1 < 0){
_local2 = 0;
} else {
if (_arg1 >= 1){
_local2 = (_local6 - 1);
} else {
_local2 = int((_local6 * _arg1));
};
};
_local5 = ((_arg1 - (_local2 * (1 / _local6))) * _local6);
_local4 = _beziers[_local3][_local2];
if (this.round){
_local7 = (_local4[0] + (_local5 * (((2 * (1 - _local5)) * (_local4[1] - _local4[0])) + (_local5 * (_local4[2] - _local4[0])))));
_local8 = ((_local7)<0) ? -1 : 1;
_target[_local3] = ((((_local7 % 1) * _local8))>0.5) ? (int(_local7) + _local8) : int(_local7);
} else {
_target[_local3] = (_local4[0] + (_local5 * (((2 * (1 - _local5)) * (_local4[1] - _local4[0])) + (_local5 * (_local4[2] - _local4[0])))));
};
};
};
if (_orient){
_local9 = _target;
_local10 = this.round;
_target = _future;
this.round = false;
_orient = false;
this.changeFactor = (_arg1 + 0.01);
_target = _local9;
this.round = _local10;
_orient = true;
_local2 = 0;
while (_local2 < _orientData.length) {
_local13 = _orientData[_local2];
_local14 = ((_local13[3]) || (0));
_local11 = (_future[_local13[0]] - _target[_local13[0]]);
_local12 = (_future[_local13[1]] - _target[_local13[1]]);
_target[_local13[2]] = ((Math.atan2(_local12, _local11) * _RAD2DEG) + _local14);
_local2++;
};
};
}
protected function init(_arg1:TweenLite, _arg2:Array, _arg3:Boolean):void{
var _local4:Object;
var _local5:int;
var _local6:String;
_target = _arg1.target;
if (_arg1.exposedVars.orientToBezier == true){
_orientData = [["x", "y", "rotation", 0]];
_orient = true;
} else {
if ((_arg1.exposedVars.orientToBezier is Array)){
_orientData = _arg1.exposedVars.orientToBezier;
_orient = true;
};
};
_local4 = {};
_local5 = 0;
while (_local5 < _arg2.length) {
for (_local6 in _arg2[_local5]) {
if (_local4[_local6] == undefined){
_local4[_local6] = [_arg1.target[_local6]];
};
if (typeof(_arg2[_local5][_local6]) == "number"){
_local4[_local6].push(_arg2[_local5][_local6]);
} else {
_local4[_local6].push((_arg1.target[_local6] + Number(_arg2[_local5][_local6])));
};
};
_local5++;
};
for (_local6 in _local4) {
this.overwriteProps[this.overwriteProps.length] = _local6;
if (_arg1.exposedVars[_local6] != undefined){
if (typeof(_arg1.exposedVars[_local6]) == "number"){
_local4[_local6].push(_arg1.exposedVars[_local6]);
} else {
_local4[_local6].push((_arg1.target[_local6] + Number(_arg1.exposedVars[_local6])));
};
delete _arg1.exposedVars[_local6];
_local5 = (_arg1.tweens.length - 1);
while (_local5 > -1) {
if (_arg1.tweens[_local5].name == _local6){
_arg1.tweens.splice(_local5, 1);
};
_local5--;
};
};
};
_beziers = parseBeziers(_local4, _arg3);
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
if (!(_arg2 is Array)){
return (false);
};
init(_arg3, (_arg2 as Array), false);
return (true);
}
override public function killProps(_arg1:Object):void{
var _local2:String;
for (_local2 in _beziers) {
if ((_local2 in _arg1)){
delete _beziers[_local2];
};
};
super.killProps(_arg1);
}
public static function parseBeziers(_arg1:Object, _arg2:Boolean=false):Object{
var _local3:int;
var _local4:Array;
var _local5:Object;
var _local6:String;
var _local7:Object;
_local7 = {};
if (_arg2){
for (_local6 in _arg1) {
_local4 = _arg1[_local6];
_local5 = [];
_local7[_local6] = _local5;
if (_local4.length > 2){
_local5[_local5.length] = [_local4[0], (_local4[1] - ((_local4[2] - _local4[0]) / 4)), _local4[1]];
_local3 = 1;
while (_local3 < (_local4.length - 1)) {
_local5[_local5.length] = [_local4[_local3], (_local4[_local3] + (_local4[_local3] - _local5[(_local3 - 1)][1])), _local4[(_local3 + 1)]];
_local3++;
};
} else {
_local5[_local5.length] = [_local4[0], ((_local4[0] + _local4[1]) / 2), _local4[1]];
};
};
} else {
for (_local6 in _arg1) {
_local4 = _arg1[_local6];
_local5 = [];
_local7[_local6] = _local5;
if (_local4.length > 3){
_local5[_local5.length] = [_local4[0], _local4[1], ((_local4[1] + _local4[2]) / 2)];
_local3 = 2;
while (_local3 < (_local4.length - 2)) {
_local5[_local5.length] = [_local5[(_local3 - 2)][2], _local4[_local3], ((_local4[_local3] + _local4[(_local3 + 1)]) / 2)];
_local3++;
};
_local5[_local5.length] = [_local5[(_local5.length - 1)][2], _local4[(_local4.length - 2)], _local4[(_local4.length - 1)]];
} else {
if (_local4.length == 3){
_local5[_local5.length] = [_local4[0], _local4[1], _local4[2]];
} else {
if (_local4.length == 2){
_local5[_local5.length] = [_local4[0], ((_local4[0] + _local4[1]) / 2), _local4[1]];
};
};
};
};
};
return (_local7);
}
}
}//package gs.plugins
Section 7
//BezierThroughPlugin (gs.plugins.BezierThroughPlugin)
package gs.plugins {
import gs.*;
public class BezierThroughPlugin extends BezierPlugin {
public static const VERSION:Number = 1;
public static const API:Number = 1;
public function BezierThroughPlugin(){
this.propName = "bezierThrough";
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
if (!(_arg2 is Array)){
return (false);
};
init(_arg3, (_arg2 as Array), true);
return (true);
}
}
}//package gs.plugins
Section 8
//BlurFilterPlugin (gs.plugins.BlurFilterPlugin)
package gs.plugins {
import gs.*;
import flash.display.*;
import flash.filters.*;
public class BlurFilterPlugin extends FilterPlugin {
public static const VERSION:Number = 1;
public static const API:Number = 1;
public function BlurFilterPlugin(){
this.propName = "blurFilter";
this.overwriteProps = ["blurFilter"];
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
_target = _arg1;
_type = BlurFilter;
initFilter(_arg2, new BlurFilter(0, 0, ((_arg2.quality) || (2))));
return (true);
}
}
}//package gs.plugins
Section 9
//ColorMatrixFilterPlugin (gs.plugins.ColorMatrixFilterPlugin)
package gs.plugins {
import gs.*;
import flash.display.*;
import flash.filters.*;
public class ColorMatrixFilterPlugin extends FilterPlugin {
protected var _matrix:Array;
protected var _matrixTween:EndArrayPlugin;
public static const API:Number = 1;
public static const VERSION:Number = 1.01;
protected static var _lumG:Number = 0.71516;
protected static var _lumR:Number = 0.212671;
protected static var _idMatrix:Array = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0];
protected static var _lumB:Number = 0.072169;
public function ColorMatrixFilterPlugin(){
this.propName = "colorMatrixFilter";
this.overwriteProps = ["colorMatrixFilter"];
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
var _local4:Object;
var _local5:Array;
_target = _arg1;
_type = ColorMatrixFilter;
_local4 = _arg2;
initFilter({}, new ColorMatrixFilter(_idMatrix.slice()));
_matrix = ColorMatrixFilter(_filter).matrix;
_local5 = [];
if (((!((_local4.matrix == null))) && ((_local4.matrix is Array)))){
_local5 = _local4.matrix;
} else {
if (_local4.relative == true){
_local5 = _matrix.slice();
} else {
_local5 = _idMatrix.slice();
};
_local5 = setBrightness(_local5, _local4.brightness);
_local5 = setContrast(_local5, _local4.contrast);
_local5 = setHue(_local5, _local4.hue);
_local5 = setSaturation(_local5, _local4.saturation);
_local5 = setThreshold(_local5, _local4.threshold);
if (!isNaN(_local4.colorize)){
_local5 = colorize(_local5, _local4.colorize, _local4.amount);
};
};
_matrixTween = new EndArrayPlugin();
_matrixTween.init(_matrix, _local5);
return (true);
}
override public function set changeFactor(_arg1:Number):void{
_matrixTween.changeFactor = _arg1;
ColorMatrixFilter(_filter).matrix = _matrix;
super.changeFactor = _arg1;
}
public static function setSaturation(_arg1:Array, _arg2:Number):Array{
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Array;
if (isNaN(_arg2)){
return (_arg1);
};
_local3 = (1 - _arg2);
_local4 = (_local3 * _lumR);
_local5 = (_local3 * _lumG);
_local6 = (_local3 * _lumB);
_local7 = [(_local4 + _arg2), _local5, _local6, 0, 0, _local4, (_local5 + _arg2), _local6, 0, 0, _local4, _local5, (_local6 + _arg2), 0, 0, 0, 0, 0, 1, 0];
return (applyMatrix(_local7, _arg1));
}
public static function setHue(_arg1:Array, _arg2:Number):Array{
var _local3:Number;
var _local4:Number;
var _local5:Array;
if (isNaN(_arg2)){
return (_arg1);
};
_arg2 = (_arg2 * (Math.PI / 180));
_local3 = Math.cos(_arg2);
_local4 = Math.sin(_arg2);
_local5 = [((_lumR + (_local3 * (1 - _lumR))) + (_local4 * -(_lumR))), ((_lumG + (_local3 * -(_lumG))) + (_local4 * -(_lumG))), ((_lumB + (_local3 * -(_lumB))) + (_local4 * (1 - _lumB))), 0, 0, ((_lumR + (_local3 * -(_lumR))) + (_local4 * 0.143)), ((_lumG + (_local3 * (1 - _lumG))) + (_local4 * 0.14)), ((_lumB + (_local3 * -(_lumB))) + (_local4 * -0.283)), 0, 0, ((_lumR + (_local3 * -(_lumR))) + (_local4 * -((1 - _lumR)))), ((_lumG + (_local3 * -(_lumG))) + (_local4 * _lumG)), ((_lumB + (_local3 * (1 - _lumB))) + (_local4 * _lumB)), 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1];
return (applyMatrix(_local5, _arg1));
}
public static function setThreshold(_arg1:Array, _arg2:Number):Array{
var _local3:Array;
if (isNaN(_arg2)){
return (_arg1);
};
_local3 = [(_lumR * 0x0100), (_lumG * 0x0100), (_lumB * 0x0100), 0, (-256 * _arg2), (_lumR * 0x0100), (_lumG * 0x0100), (_lumB * 0x0100), 0, (-256 * _arg2), (_lumR * 0x0100), (_lumG * 0x0100), (_lumB * 0x0100), 0, (-256 * _arg2), 0, 0, 0, 1, 0];
return (applyMatrix(_local3, _arg1));
}
public static function applyMatrix(_arg1:Array, _arg2:Array):Array{
var _local3:Array;
var _local4:int;
var _local5:int;
var _local6:int;
var _local7:int;
if (((!((_arg1 is Array))) || (!((_arg2 is Array))))){
return (_arg2);
};
_local3 = [];
_local4 = 0;
_local5 = 0;
_local6 = 0;
while (_local6 < 4) {
_local7 = 0;
while (_local7 < 5) {
if (_local7 == 4){
_local5 = _arg1[(_local4 + 4)];
} else {
_local5 = 0;
};
_local3[(_local4 + _local7)] = (((((_arg1[_local4] * _arg2[_local7]) + (_arg1[(_local4 + 1)] * _arg2[(_local7 + 5)])) + (_arg1[(_local4 + 2)] * _arg2[(_local7 + 10)])) + (_arg1[(_local4 + 3)] * _arg2[(_local7 + 15)])) + _local5);
_local7++;
};
_local4 = (_local4 + 5);
_local6++;
};
return (_local3);
}
public static function colorize(_arg1:Array, _arg2:Number, _arg3:Number=1):Array{
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Array;
if (isNaN(_arg2)){
return (_arg1);
};
if (isNaN(_arg3)){
_arg3 = 1;
};
_local4 = (((_arg2 >> 16) & 0xFF) / 0xFF);
_local5 = (((_arg2 >> 8) & 0xFF) / 0xFF);
_local6 = ((_arg2 & 0xFF) / 0xFF);
_local7 = (1 - _arg3);
_local8 = [(_local7 + ((_arg3 * _local4) * _lumR)), ((_arg3 * _local4) * _lumG), ((_arg3 * _local4) * _lumB), 0, 0, ((_arg3 * _local5) * _lumR), (_local7 + ((_arg3 * _local5) * _lumG)), ((_arg3 * _local5) * _lumB), 0, 0, ((_arg3 * _local6) * _lumR), ((_arg3 * _local6) * _lumG), (_local7 + ((_arg3 * _local6) * _lumB)), 0, 0, 0, 0, 0, 1, 0];
return (applyMatrix(_local8, _arg1));
}
public static function setBrightness(_arg1:Array, _arg2:Number):Array{
if (isNaN(_arg2)){
return (_arg1);
};
_arg2 = ((_arg2 * 100) - 100);
return (applyMatrix([1, 0, 0, 0, _arg2, 0, 1, 0, 0, _arg2, 0, 0, 1, 0, _arg2, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1], _arg1));
}
public static function setContrast(_arg1:Array, _arg2:Number):Array{
var _local3:Array;
if (isNaN(_arg2)){
return (_arg1);
};
_arg2 = (_arg2 + 0.01);
_local3 = [_arg2, 0, 0, 0, (128 * (1 - _arg2)), 0, _arg2, 0, 0, (128 * (1 - _arg2)), 0, 0, _arg2, 0, (128 * (1 - _arg2)), 0, 0, 0, 1, 0];
return (applyMatrix(_local3, _arg1));
}
}
}//package gs.plugins
Section 10
//DropShadowFilterPlugin (gs.plugins.DropShadowFilterPlugin)
package gs.plugins {
import gs.*;
import flash.display.*;
import flash.filters.*;
public class DropShadowFilterPlugin extends FilterPlugin {
public static const VERSION:Number = 1;
public static const API:Number = 1;
public function DropShadowFilterPlugin(){
this.propName = "dropShadowFilter";
this.overwriteProps = ["dropShadowFilter"];
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
_target = _arg1;
_type = DropShadowFilter;
initFilter(_arg2, new DropShadowFilter(0, 45, 0, 0, 0, 0, 1, ((_arg2.quality) || (2)), _arg2.inner, _arg2.knockout, _arg2.hideObject));
return (true);
}
}
}//package gs.plugins
Section 11
//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 12
//FilterPlugin (gs.plugins.FilterPlugin)
package gs.plugins {
import gs.*;
import flash.display.*;
import flash.filters.*;
import gs.utils.tween.*;
public class FilterPlugin extends TweenPlugin {
protected var _index:int;
protected var _filter:BitmapFilter;
protected var _type:Class;
protected var _remove:Boolean;
protected var _target:Object;
public static const VERSION:Number = 1.03;
public static const API:Number = 1;
override public function set changeFactor(_arg1:Number):void{
var _local2:int;
var _local3:TweenInfo;
var _local4:Array;
_local4 = _target.filters;
_local2 = (_tweens.length - 1);
while (_local2 > -1) {
_local3 = _tweens[_local2];
_local3.target[_local3.property] = (_local3.start + (_local3.change * _arg1));
_local2--;
};
if (!(_local4[_index] is _type)){
_index = (_local4.length - 1);
_local2 = (_local4.length - 1);
while (_local2 > -1) {
if ((_local4[_local2] is _type)){
_index = _local2;
break;
};
_local2--;
};
};
_local4[_index] = _filter;
_target.filters = _local4;
}
public function onCompleteTween():void{
var _local1:int;
var _local2:Array;
if (_remove){
_local2 = _target.filters;
if (!(_local2[_index] is _type)){
_local1 = (_local2.length - 1);
while (_local1 > -1) {
if ((_local2[_local1] is _type)){
_local2.splice(_local1, 1);
break;
};
_local1--;
};
} else {
_local2.splice(_index, 1);
};
_target.filters = _local2;
};
}
protected function initFilter(_arg1:Object, _arg2:BitmapFilter):void{
var _local3:Array;
var _local4:String;
var _local5:int;
var _local6:HexColorsPlugin;
var _local7:Object;
_local3 = _target.filters;
_index = -1;
if (_arg1.index != null){
_index = _arg1.index;
} else {
_local5 = (_local3.length - 1);
while (_local5 > -1) {
if ((_local3[_local5] is _type)){
_index = _local5;
break;
};
_local5--;
};
};
if ((((((_index == -1)) || ((_local3[_index] == null)))) || ((_arg1.addFilter == true)))){
_index = ((_arg1.index)!=null) ? _arg1.index : _local3.length;
_local3[_index] = _arg2;
_target.filters = _local3;
};
_filter = _local3[_index];
_remove = Boolean((_arg1.remove == true));
if (_remove){
this.onComplete = onCompleteTween;
};
_local7 = ((_arg1.isTV)==true) ? _arg1.exposedVars : _arg1;
for (_local4 in _local7) {
if (((((((((!((_local4 in _filter))) || ((_filter[_local4] == _local7[_local4])))) || ((_local4 == "remove")))) || ((_local4 == "index")))) || ((_local4 == "addFilter")))){
} else {
if ((((((_local4 == "color")) || ((_local4 == "highlightColor")))) || ((_local4 == "shadowColor")))){
_local6 = new HexColorsPlugin();
_local6.initColor(_filter, _local4, _filter[_local4], _local7[_local4]);
_tweens[_tweens.length] = new TweenInfo(_local6, "changeFactor", 0, 1, _local4, false);
} else {
if ((((((((_local4 == "quality")) || ((_local4 == "inner")))) || ((_local4 == "knockout")))) || ((_local4 == "hideObject")))){
_filter[_local4] = _local7[_local4];
} else {
addTween(_filter, _local4, _filter[_local4], _local7[_local4], _local4);
};
};
};
};
}
}
}//package gs.plugins
Section 13
//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 14
//GlowFilterPlugin (gs.plugins.GlowFilterPlugin)
package gs.plugins {
import gs.*;
import flash.display.*;
import flash.filters.*;
public class GlowFilterPlugin extends FilterPlugin {
public static const VERSION:Number = 1;
public static const API:Number = 1;
public function GlowFilterPlugin(){
this.propName = "glowFilter";
this.overwriteProps = ["glowFilter"];
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
_target = _arg1;
_type = GlowFilter;
initFilter(_arg2, new GlowFilter(0xFFFFFF, 0, 0, 0, ((_arg2.strength) || (1)), ((_arg2.quality) || (2)), _arg2.inner, _arg2.knockout));
return (true);
}
}
}//package gs.plugins
Section 15
//HexColorsPlugin (gs.plugins.HexColorsPlugin)
package gs.plugins {
import gs.*;
public class HexColorsPlugin extends TweenPlugin {
protected var _colors:Array;
public static const VERSION:Number = 1.01;
public static const API:Number = 1;
public function HexColorsPlugin(){
this.propName = "hexColors";
this.overwriteProps = [];
_colors = [];
}
override public function set changeFactor(_arg1:Number):void{
var _local2:int;
var _local3:Array;
_local2 = (_colors.length - 1);
while (_local2 > -1) {
_local3 = _colors[_local2];
_local3[0][_local3[1]] = ((((_local3[2] + (_arg1 * _local3[3])) << 16) | ((_local3[4] + (_arg1 * _local3[5])) << 8)) | (_local3[6] + (_arg1 * _local3[7])));
_local2--;
};
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
var _local4:String;
for (_local4 in _arg2) {
initColor(_arg1, _local4, uint(_arg1[_local4]), uint(_arg2[_local4]));
};
return (true);
}
override public function killProps(_arg1:Object):void{
var _local2:int;
_local2 = (_colors.length - 1);
while (_local2 > -1) {
if (_arg1[_colors[_local2][1]] != undefined){
_colors.splice(_local2, 1);
};
_local2--;
};
super.killProps(_arg1);
}
public function initColor(_arg1:Object, _arg2:String, _arg3:uint, _arg4:uint):void{
var _local5:Number;
var _local6:Number;
var _local7:Number;
if (_arg3 != _arg4){
_local5 = (_arg3 >> 16);
_local6 = ((_arg3 >> 8) & 0xFF);
_local7 = (_arg3 & 0xFF);
_colors[_colors.length] = [_arg1, _arg2, _local5, ((_arg4 >> 16) - _local5), _local6, (((_arg4 >> 8) & 0xFF) - _local6), _local7, ((_arg4 & 0xFF) - _local7)];
this.overwriteProps[this.overwriteProps.length] = _arg2;
};
}
}
}//package gs.plugins
Section 16
//RemoveTintPlugin (gs.plugins.RemoveTintPlugin)
package gs.plugins {
public class RemoveTintPlugin extends TintPlugin {
public static const VERSION:Number = 1.01;
public static const API:Number = 1;
public function RemoveTintPlugin(){
this.propName = "removeTint";
}
}
}//package gs.plugins
Section 17
//RoundPropsPlugin (gs.plugins.RoundPropsPlugin)
package gs.plugins {
public class RoundPropsPlugin extends TweenPlugin {
public static const VERSION:Number = 1;
public static const API:Number = 1;
public function RoundPropsPlugin(){
this.propName = "roundProps";
this.overwriteProps = [];
this.round = true;
}
public function add(_arg1:Object, _arg2:String, _arg3:Number, _arg4:Number):void{
addTween(_arg1, _arg2, _arg3, (_arg3 + _arg4), _arg2);
this.overwriteProps[this.overwriteProps.length] = _arg2;
}
}
}//package gs.plugins
Section 18
//ShortRotationPlugin (gs.plugins.ShortRotationPlugin)
package gs.plugins {
import gs.*;
public class ShortRotationPlugin extends TweenPlugin {
public static const VERSION:Number = 1;
public static const API:Number = 1;
public function ShortRotationPlugin(){
this.propName = "shortRotation";
this.overwriteProps = [];
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
var _local4:String;
if (typeof(_arg2) == "number"){
trace("WARNING: You appear to be using the old shortRotation syntax. Instead of passing a number, please pass an object with properties that correspond to the rotations values For example, TweenMax.to(mc, 2, {shortRotation:{rotationX:-170, rotationY:25}})");
return (false);
};
for (_local4 in _arg2) {
initRotation(_arg1, _local4, _arg1[_local4], _arg2[_local4]);
};
return (true);
}
public function initRotation(_arg1:Object, _arg2:String, _arg3:Number, _arg4:Number):void{
var _local5:Number;
_local5 = ((_arg4 - _arg3) % 360);
if (((_arg4 - _arg3) % 360) != (_local5 % 180)){
_local5 = ((_local5)<0) ? (_local5 + 360) : (_local5 - 360);
};
addTween(_arg1, _arg2, _arg3, (_arg3 + _local5), _arg2);
this.overwriteProps[this.overwriteProps.length] = _arg2;
}
}
}//package gs.plugins
Section 19
//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 20
//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 21
//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 22
//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 23
//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 24
//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 25
//OverwriteManager (gs.OverwriteManager)
package gs {
import gs.utils.tween.*;
import flash.utils.*;
import flash.errors.*;
public class OverwriteManager {
public static const ALL:int = 1;
public static const NONE:int = 0;
public static const AUTO:int = 2;
public static const CONCURRENT:int = 3;
public static const version:Number = 3.12;
public static var mode:int;
public static var enabled:Boolean;
public static function killVars(_arg1:Object, _arg2:Object, _arg3:Array):void{
var _local4:int;
var _local5:String;
var _local6:TweenInfo;
_local4 = (_arg3.length - 1);
while (_local4 > -1) {
_local6 = _arg3[_local4];
if ((_local6.name in _arg1)){
_arg3.splice(_local4, 1);
} else {
if (((_local6.isPlugin) && ((_local6.name == "_MULTIPLE_")))){
_local6.target.killProps(_arg1);
if (_local6.target.overwriteProps.length == 0){
_arg3.splice(_local4, 1);
};
};
};
_local4--;
};
for (_local5 in _arg1) {
delete _arg2[_local5];
};
}
public static function manageOverwrites(_arg1:TweenLite, _arg2:Array):void{
var _local3:Object;
var _local4:int;
var _local5:Number;
var _local6:Array;
var _local7:int;
var _local8:TweenLite;
var _local9:int;
var _local10:Array;
var _local11:Object;
var _local12:int;
var _local13:TweenInfo;
var _local14:Array;
_local3 = _arg1.vars;
_local4 = ((_local3.overwrite)==undefined) ? mode : int(_local3.overwrite);
if ((((_local4 < 2)) || ((_arg2 == null)))){
return;
};
_local5 = _arg1.startTime;
_local6 = [];
_local9 = -1;
_local7 = (_arg2.length - 1);
while (_local7 > -1) {
_local8 = _arg2[_local7];
if (_local8 == _arg1){
_local9 = _local7;
} else {
if ((((((_local7 < _local9)) && ((_local8.startTime <= _local5)))) && (((_local8.startTime + ((_local8.duration * 1000) / _local8.combinedTimeScale)) > _local5)))){
_local6[_local6.length] = _local8;
};
};
_local7--;
};
if ((((_local6.length == 0)) || ((_arg1.tweens.length == 0)))){
return;
};
if (_local4 == AUTO){
_local10 = _arg1.tweens;
_local11 = {};
_local7 = (_local10.length - 1);
while (_local7 > -1) {
_local13 = _local10[_local7];
if (_local13.isPlugin){
if (_local13.name == "_MULTIPLE_"){
_local14 = _local13.target.overwriteProps;
_local12 = (_local14.length - 1);
while (_local12 > -1) {
_local11[_local14[_local12]] = true;
_local12--;
};
} else {
_local11[_local13.name] = true;
};
_local11[_local13.target.propName] = true;
} else {
_local11[_local13.name] = true;
};
_local7--;
};
_local7 = (_local6.length - 1);
while (_local7 > -1) {
killVars(_local11, _local6[_local7].exposedVars, _local6[_local7].tweens);
_local7--;
};
} else {
_local7 = (_local6.length - 1);
while (_local7 > -1) {
_local6[_local7].enabled = false;
_local7--;
};
};
}
public static function init(_arg1:int=2):int{
if (TweenLite.version < 10.09){
trace("TweenLite warning: Your TweenLite class needs to be updated to work with OverwriteManager (or you may need to clear your ASO files). Please download and install the latest version from http://www.tweenlite.com.");
};
TweenLite.overwriteManager = OverwriteManager;
mode = _arg1;
enabled = true;
return (mode);
}
}
}//package gs
Section 26
//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 27
//TweenMax (gs.TweenMax)
package gs {
import flash.events.*;
import gs.utils.tween.*;
import gs.plugins.*;
import gs.events.*;
import flash.utils.*;
public class TweenMax extends TweenLite implements IEventDispatcher {
protected var _dispatcher:EventDispatcher;
protected var _callbacks:Object;
public var pauseTime:Number;
protected var _repeatCount:Number;
protected var _timeScale:Number;
public static const version:Number = 10.1;
public static var removeTween:Function = TweenLite.removeTween;
private static var _overwriteMode:int = (OverwriteManager.enabled) ? OverwriteManager.mode : OverwriteManager.init();
;
protected static var _pausedTweens:Dictionary = new Dictionary(false);
protected static var _globalTimeScale:Number = 1;
public static var killTweensOf:Function = TweenLite.killTweensOf;
public static var killDelayedCallsTo:Function = TweenLite.killTweensOf;
private static var _activatedPlugins:Boolean = TweenPlugin.activate([TintPlugin, RemoveTintPlugin, FramePlugin, AutoAlphaPlugin, VisiblePlugin, VolumePlugin, EndArrayPlugin, HexColorsPlugin, BlurFilterPlugin, ColorMatrixFilterPlugin, BevelFilterPlugin, DropShadowFilterPlugin, GlowFilterPlugin, RoundPropsPlugin, BezierPlugin, BezierThroughPlugin, ShortRotationPlugin]);
public function TweenMax(_arg1:Object, _arg2:Number, _arg3:Object){
super(_arg1, _arg2, _arg3);
if (TweenLite.version < 10.09){
trace("TweenMax error! Please update your TweenLite class or try deleting your ASO files. TweenMax requires a more recent version. Download updates at http://www.TweenMax.com.");
};
if (((!((this.combinedTimeScale == 1))) && ((this.target is TweenMax)))){
_timeScale = 1;
this.combinedTimeScale = _globalTimeScale;
} else {
_timeScale = this.combinedTimeScale;
this.combinedTimeScale = (this.combinedTimeScale * _globalTimeScale);
};
if (((!((this.combinedTimeScale == 1))) && (!((this.delay == 0))))){
this.startTime = (this.initTime + (this.delay * (1000 / this.combinedTimeScale)));
};
if (((((!((this.vars.onCompleteListener == null))) || (!((this.vars.onUpdateListener == null))))) || (!((this.vars.onStartListener == null))))){
initDispatcher();
if ((((_arg2 == 0)) && ((this.delay == 0)))){
onUpdateDispatcher();
onCompleteDispatcher();
};
};
_repeatCount = 0;
if (((!(isNaN(this.vars.yoyo))) || (!(isNaN(this.vars.loop))))){
this.vars.persist = true;
};
if ((((this.delay == 0)) && (!((this.exposedVars.startAt == null))))){
this.exposedVars.startAt.overwrite = 0;
new TweenMax(this.target, 0, this.exposedVars.startAt);
};
}
override public function set enabled(_arg1:Boolean):void{
if (!_arg1){
_pausedTweens[this] = null;
delete _pausedTweens[this];
};
super.enabled = _arg1;
if (_arg1){
this.combinedTimeScale = (_timeScale * _globalTimeScale);
};
}
public function set reversed(_arg1:Boolean):void{
if (this.reversed != _arg1){
reverse();
};
}
override public function render(_arg1:uint):void{
var _local2:Number;
var _local3:Number;
var _local4:TweenInfo;
var _local5:int;
_local2 = (((_arg1 - this.startTime) * 0.001) * this.combinedTimeScale);
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);
};
}
protected function adjustStartValues():void{
var _local1:Number;
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:TweenInfo;
var _local6:int;
_local1 = this.progress;
if (_local1 != 0){
_local2 = this.ease(_local1, 0, 1, 1);
_local3 = (1 / (1 - _local2));
_local6 = (this.tweens.length - 1);
while (_local6 > -1) {
_local5 = this.tweens[_local6];
_local4 = (_local5.start + _local5.change);
if (_local5.isPlugin){
_local5.change = ((_local4 - _local2) * _local3);
} else {
_local5.change = ((_local4 - _local5.target[_local5.property]) * _local3);
};
_local5.start = (_local4 - _local5.change);
_local6--;
};
};
}
public function get timeScale():Number{
return (_timeScale);
}
public function restart(_arg1:Boolean=false):void{
if (_arg1){
this.initTime = currentTime;
this.startTime = (currentTime + (this.delay * (1000 / this.combinedTimeScale)));
} else {
this.startTime = currentTime;
this.initTime = (currentTime - (this.delay * (1000 / this.combinedTimeScale)));
};
_repeatCount = 0;
if (this.target != this.vars.onComplete){
render(this.startTime);
};
this.pauseTime = NaN;
_pausedTweens[this] = null;
delete _pausedTweens[this];
this.enabled = true;
}
public function get paused():Boolean{
return (!(isNaN(this.pauseTime)));
}
public function killProperties(_arg1:Array):void{
var _local2:Object;
var _local3:int;
_local2 = {};
_local3 = (_arg1.length - 1);
while (_local3 > -1) {
_local2[_arg1[_local3]] = true;
_local3--;
};
killVars(_local2);
}
public function resume():void{
this.enabled = true;
if (!isNaN(this.pauseTime)){
this.initTime = (this.initTime + (currentTime - this.pauseTime));
this.startTime = (this.initTime + (this.delay * (1000 / this.combinedTimeScale)));
this.pauseTime = NaN;
if (((!(this.started)) && ((currentTime >= this.startTime)))){
activate();
} else {
this.active = this.started;
};
_pausedTweens[this] = null;
delete _pausedTweens[this];
};
}
override public function complete(_arg1:Boolean=false):void{
if (((((!(isNaN(this.vars.yoyo))) && ((((_repeatCount < this.vars.yoyo)) || ((this.vars.yoyo == 0)))))) || (((!(isNaN(this.vars.loop))) && ((((_repeatCount < this.vars.loop)) || ((this.vars.loop == 0)))))))){
_repeatCount++;
if (!isNaN(this.vars.yoyo)){
this.ease = ((this.vars.ease)==this.ease) ? reverseEase : this.vars.ease;
};
this.startTime = (_arg1) ? (this.startTime + (this.duration * (1000 / this.combinedTimeScale))) : currentTime;
this.initTime = (this.startTime - (this.delay * (1000 / this.combinedTimeScale)));
} else {
if (this.vars.persist == true){
pause();
};
};
super.complete(_arg1);
}
public function invalidate(_arg1:Boolean=true):void{
var _local2:Number;
if (this.initted){
_local2 = this.progress;
if (((!(_arg1)) && (!((_local2 == 0))))){
this.progress = 0;
};
this.tweens = [];
_hasPlugins = false;
this.exposedVars = ((this.vars.isTV)==true) ? this.vars.exposedProps : this.vars;
initTweenVals();
_timeScale = ((this.vars.timeScale) || (1));
this.combinedTimeScale = (_timeScale * _globalTimeScale);
this.delay = ((this.vars.delay) || (0));
if (isNaN(this.pauseTime)){
this.startTime = (this.initTime + ((this.delay * 1000) / this.combinedTimeScale));
};
if (((((!((this.vars.onCompleteListener == null))) || (!((this.vars.onUpdateListener == null))))) || (!((this.vars.onStartListener == null))))){
if (_dispatcher != null){
this.vars.onStart = _callbacks.onStart;
this.vars.onUpdate = _callbacks.onUpdate;
this.vars.onComplete = _callbacks.onComplete;
_dispatcher = null;
};
initDispatcher();
};
if (_local2 != 0){
if (_arg1){
adjustStartValues();
} else {
this.progress = _local2;
};
};
};
}
public function get progress():Number{
var _local1:Number;
var _local2:Number;
_local1 = (isNaN(this.pauseTime)) ? currentTime : this.pauseTime;
_local2 = (((((_local1 - this.initTime) * 0.001) - (this.delay / this.combinedTimeScale)) / this.duration) * this.combinedTimeScale);
if (_local2 > 1){
return (1);
};
if (_local2 < 0){
return (0);
};
return (_local2);
}
public function willTrigger(_arg1:String):Boolean{
if (_dispatcher == null){
return (false);
};
return (_dispatcher.willTrigger(_arg1));
}
public function dispatchEvent(_arg1:Event):Boolean{
if (_dispatcher == null){
return (false);
};
return (_dispatcher.dispatchEvent(_arg1));
}
public function get reversed():Boolean{
return ((this.ease == reverseEase));
}
protected function onStartDispatcher(... _args):void{
if (_callbacks.onStart != null){
_callbacks.onStart.apply(null, this.vars.onStartParams);
};
_dispatcher.dispatchEvent(new TweenEvent(TweenEvent.START));
}
public function setDestination(_arg1:String, _arg2, _arg3:Boolean=true):void{
var _local4:Number;
var _local5:int;
var _local6:TweenInfo;
var _local7:Object;
var _local8:Object;
var _local9:Array;
var _local10:Boolean;
var _local11:Array;
var _local12:Object;
_local4 = this.progress;
if (this.initted){
if (!_arg3){
_local5 = (this.tweens.length - 1);
while (_local5 > -1) {
_local6 = this.tweens[_local5];
if (_local6.name == _arg1){
_local6.target[_local6.property] = _local6.start;
};
_local5--;
};
};
_local7 = this.vars;
_local8 = this.exposedVars;
_local9 = this.tweens;
_local10 = _hasPlugins;
this.tweens = [];
this.vars = (this.exposedVars = {});
this.vars[_arg1] = _arg2;
initTweenVals();
if (((!((this.ease == reverseEase))) && ((_local7.ease is Function)))){
this.ease = _local7.ease;
};
if (((_arg3) && (!((_local4 == 0))))){
adjustStartValues();
};
_local11 = this.tweens;
this.vars = _local7;
this.exposedVars = _local8;
this.tweens = _local9;
_local12 = {};
_local12[_arg1] = true;
_local5 = (this.tweens.length - 1);
while (_local5 > -1) {
_local6 = this.tweens[_local5];
if (_local6.name == _arg1){
this.tweens.splice(_local5, 1);
} else {
if (((_local6.isPlugin) && ((_local6.name == "_MULTIPLE_")))){
_local6.target.killProps(_local12);
if (_local6.target.overwriteProps.length == 0){
this.tweens.splice(_local5, 1);
};
};
};
_local5--;
};
this.tweens = this.tweens.concat(_local11);
_hasPlugins = Boolean(((_local10) || (_hasPlugins)));
};
this.vars[_arg1] = (this.exposedVars[_arg1] = _arg2);
}
public function set timeScale(_arg1:Number):void{
if (_arg1 < 1E-5){
_arg1 = (_timeScale = 1E-5);
} else {
_timeScale = _arg1;
_arg1 = (_arg1 * _globalTimeScale);
};
this.initTime = ((currentTime - ((((currentTime - this.initTime) - (this.delay * (1000 / this.combinedTimeScale))) * this.combinedTimeScale) * (1 / _arg1))) - (this.delay * (1000 / _arg1)));
if (this.startTime != 999999999999999){
this.startTime = (this.initTime + (this.delay * (1000 / _arg1)));
};
this.combinedTimeScale = _arg1;
}
public function removeEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false):void{
if (_dispatcher != null){
_dispatcher.removeEventListener(_arg1, _arg2, _arg3);
};
}
override public function initTweenVals():void{
var _local1:int;
var _local2:int;
var _local3:String;
var _local4:String;
var _local5:Array;
var _local6:Object;
var _local7:TweenInfo;
if (((!((this.exposedVars.startAt == null))) && (!((this.delay == 0))))){
this.exposedVars.startAt.overwrite = 0;
new TweenMax(this.target, 0, this.exposedVars.startAt);
};
super.initTweenVals();
if ((((this.exposedVars.roundProps is Array)) && (!((TweenLite.plugins.roundProps == null))))){
_local5 = this.exposedVars.roundProps;
_local1 = (_local5.length - 1);
while (_local1 > -1) {
_local3 = _local5[_local1];
_local2 = (this.tweens.length - 1);
while (_local2 > -1) {
_local7 = this.tweens[_local2];
if (_local7.name == _local3){
if (_local7.isPlugin){
_local7.target.round = true;
} else {
if (_local6 == null){
_local6 = new TweenLite.plugins.roundProps();
_local6.add(_local7.target, _local3, _local7.start, _local7.change);
_hasPlugins = true;
this.tweens[_local2] = new TweenInfo(_local6, "changeFactor", 0, 1, _local3, true);
} else {
_local6.add(_local7.target, _local3, _local7.start, _local7.change);
this.tweens.splice(_local2, 1);
};
};
} else {
if (((((_local7.isPlugin) && ((_local7.name == "_MULTIPLE_")))) && (!(_local7.target.round)))){
_local4 = ((" " + _local7.target.overwriteProps.join(" ")) + " ");
if (_local4.indexOf(((" " + _local3) + " ")) != -1){
_local7.target.round = true;
};
};
};
_local2--;
};
_local1--;
};
};
}
protected function initDispatcher():void{
var _local1:Object;
var _local2:String;
if (_dispatcher == null){
_dispatcher = new EventDispatcher(this);
_callbacks = {onStart:this.vars.onStart, onUpdate:this.vars.onUpdate, onComplete:this.vars.onComplete};
if (this.vars.isTV == true){
this.vars = this.vars.clone();
} else {
_local1 = {};
for (_local2 in this.vars) {
_local1[_local2] = this.vars[_local2];
};
this.vars = _local1;
};
this.vars.onStart = onStartDispatcher;
this.vars.onComplete = onCompleteDispatcher;
if ((this.vars.onStartListener is Function)){
_dispatcher.addEventListener(TweenEvent.START, this.vars.onStartListener, false, 0, true);
};
if ((this.vars.onUpdateListener is Function)){
_dispatcher.addEventListener(TweenEvent.UPDATE, this.vars.onUpdateListener, false, 0, true);
this.vars.onUpdate = onUpdateDispatcher;
_hasUpdate = true;
};
if ((this.vars.onCompleteListener is Function)){
_dispatcher.addEventListener(TweenEvent.COMPLETE, this.vars.onCompleteListener, false, 0, true);
};
};
}
protected function onUpdateDispatcher(... _args):void{
if (_callbacks.onUpdate != null){
_callbacks.onUpdate.apply(null, this.vars.onUpdateParams);
};
_dispatcher.dispatchEvent(new TweenEvent(TweenEvent.UPDATE));
}
public function set progress(_arg1:Number):void{
this.startTime = (currentTime - ((this.duration * _arg1) * 1000));
this.initTime = (this.startTime - (this.delay * (1000 / this.combinedTimeScale)));
if (!this.started){
activate();
};
render(currentTime);
if (!isNaN(this.pauseTime)){
this.pauseTime = currentTime;
this.startTime = 999999999999999;
this.active = false;
};
}
public function reverse(_arg1:Boolean=true, _arg2:Boolean=true):void{
var _local3:Number;
this.ease = ((this.vars.ease)==this.ease) ? reverseEase : this.vars.ease;
_local3 = this.progress;
if (((_arg1) && ((_local3 > 0)))){
this.startTime = (currentTime - ((((1 - _local3) * this.duration) * 1000) / this.combinedTimeScale));
this.initTime = (this.startTime - (this.delay * (1000 / this.combinedTimeScale)));
};
if (_arg2 != false){
if (_local3 < 1){
resume();
} else {
restart();
};
};
}
public function addEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false, _arg4:int=0, _arg5:Boolean=false):void{
if (_dispatcher == null){
initDispatcher();
};
if ((((_arg1 == TweenEvent.UPDATE)) && (!((this.vars.onUpdate == onUpdateDispatcher))))){
this.vars.onUpdate = onUpdateDispatcher;
_hasUpdate = true;
};
_dispatcher.addEventListener(_arg1, _arg2, _arg3, _arg4, _arg5);
}
public function set paused(_arg1:Boolean):void{
if (_arg1){
pause();
} else {
resume();
};
}
public function hasEventListener(_arg1:String):Boolean{
if (_dispatcher == null){
return (false);
};
return (_dispatcher.hasEventListener(_arg1));
}
public function pause():void{
if (isNaN(this.pauseTime)){
this.pauseTime = currentTime;
this.startTime = 999999999999999;
this.enabled = false;
_pausedTweens[this] = this;
};
}
public function reverseEase(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return (this.vars.ease((_arg4 - _arg1), _arg2, _arg3, _arg4));
}
protected function onCompleteDispatcher(... _args):void{
if (_callbacks.onComplete != null){
_callbacks.onComplete.apply(null, this.vars.onCompleteParams);
};
_dispatcher.dispatchEvent(new TweenEvent(TweenEvent.COMPLETE));
}
public static function set globalTimeScale(_arg1:Number):void{
setGlobalTimeScale(_arg1);
}
public static function pauseAll(_arg1:Boolean=true, _arg2:Boolean=false):void{
changePause(true, _arg1, _arg2);
}
public static function killAllDelayedCalls(_arg1:Boolean=false):void{
killAll(_arg1, false, true);
}
public static function setGlobalTimeScale(_arg1:Number):void{
var _local2:Dictionary;
var _local3:int;
var _local4:Array;
if (_arg1 < 1E-5){
_arg1 = 1E-5;
};
_local2 = masterList;
_globalTimeScale = _arg1;
for each (_local4 in _local2) {
_local3 = (_local4.length - 1);
while (_local3 > -1) {
if ((_local4[_local3] is TweenMax)){
_local4[_local3].timeScale = (_local4[_local3].timeScale * 1);
};
_local3--;
};
};
}
public static function get globalTimeScale():Number{
return (_globalTimeScale);
}
public static function getTweensOf(_arg1:Object):Array{
var _local2:Array;
var _local3:Array;
var _local4:TweenLite;
var _local5:int;
_local2 = masterList[_arg1];
_local3 = [];
if (_local2 != null){
_local5 = (_local2.length - 1);
while (_local5 > -1) {
if (!_local2[_local5].gc){
_local3[_local3.length] = _local2[_local5];
};
_local5--;
};
};
for each (_local4 in _pausedTweens) {
if (_local4.target == _arg1){
_local3[_local3.length] = _local4;
};
};
return (_local3);
}
public static function delayedCall(_arg1:Number, _arg2:Function, _arg3:Array=null, _arg4:Boolean=false):TweenMax{
return (new TweenMax(_arg2, 0, {delay:_arg1, onComplete:_arg2, onCompleteParams:_arg3, persist:_arg4, overwrite:0}));
}
public static function isTweening(_arg1:Object):Boolean{
var _local2:Array;
var _local3:int;
_local2 = getTweensOf(_arg1);
_local3 = (_local2.length - 1);
while (_local3 > -1) {
if (((((_local2[_local3].active) || ((_local2[_local3].startTime == currentTime)))) && (!(_local2[_local3].gc)))){
return (true);
};
_local3--;
};
return (false);
}
public static function changePause(_arg1:Boolean, _arg2:Boolean=true, _arg3:Boolean=false):void{
var _local4:Array;
var _local5:Boolean;
var _local6:int;
_local4 = getAllTweens();
_local6 = (_local4.length - 1);
while (_local6 > -1) {
_local5 = (_local4[_local6].target == _local4[_local6].vars.onComplete);
if ((((_local4[_local6] is TweenMax)) && ((((_local5 == _arg3)) || (!((_local5 == _arg2))))))){
_local4[_local6].paused = _arg1;
};
_local6--;
};
}
public static function killAllTweens(_arg1:Boolean=false):void{
killAll(_arg1, true, false);
}
public static function from(_arg1:Object, _arg2:Number, _arg3:Object):TweenMax{
_arg3.runBackwards = true;
return (new TweenMax(_arg1, _arg2, _arg3));
}
public static function killAll(_arg1:Boolean=false, _arg2:Boolean=true, _arg3:Boolean=true):void{
var _local4:Array;
var _local5:Boolean;
var _local6:int;
_local4 = getAllTweens();
_local6 = (_local4.length - 1);
while (_local6 > -1) {
_local5 = (_local4[_local6].target == _local4[_local6].vars.onComplete);
if ((((_local5 == _arg3)) || (!((_local5 == _arg2))))){
if (_arg1){
_local4[_local6].complete(false);
_local4[_local6].clear();
} else {
TweenLite.removeTween(_local4[_local6], true);
};
};
_local6--;
};
}
public static function getAllTweens():Array{
var _local1:Dictionary;
var _local2:Array;
var _local3:Array;
var _local4:int;
var _local5:TweenLite;
_local1 = masterList;
_local2 = [];
for each (_local3 in _local1) {
_local4 = (_local3.length - 1);
while (_local4 > -1) {
if (!_local3[_local4].gc){
_local2[_local2.length] = _local3[_local4];
};
_local4--;
};
};
for each (_local5 in _pausedTweens) {
_local2[_local2.length] = _local5;
};
return (_local2);
}
public static function resumeAll(_arg1:Boolean=true, _arg2:Boolean=false):void{
changePause(false, _arg1, _arg2);
}
public static function to(_arg1:Object, _arg2:Number, _arg3:Object):TweenMax{
return (new TweenMax(_arg1, _arg2, _arg3));
}
}
}//package gs
Section 28
//bottomst_523 (newfile_fla.bottomst_523)
package newfile_fla {
import flash.display.*;
public dynamic class bottomst_523 extends MovieClip {
public function bottomst_523(){
addFrameScript(0, frame1, 12, frame13);
}
function frame1(){
stop();
}
function frame13(){
gotoAndStop(2);
}
}
}//package newfile_fla
Section 29
//cbvdsfdsf_loader_7 (newfile_fla.cbvdsfdsf_loader_7)
package newfile_fla {
import flash.display.*;
public dynamic class cbvdsfdsf_loader_7 extends MovieClip {
public var masker:MovieClip;
}
}//package newfile_fla
Section 30
//chainpalette_107 (newfile_fla.chainpalette_107)
package newfile_fla {
import flash.display.*;
public dynamic class chainpalette_107 extends MovieClip {
public var c1:MovieClip;
public var c3:MovieClip;
public var c4:MovieClip;
public var c5:MovieClip;
public var c2:MovieClip;
}
}//package newfile_fla
Section 31
//chainst_569 (newfile_fla.chainst_569)
package newfile_fla {
import flash.display.*;
public dynamic class chainst_569 extends MovieClip {
public function chainst_569(){
addFrameScript(0, frame1, 6, frame7);
}
function frame7(){
gotoAndStop(2);
}
function frame1(){
stop();
}
}
}//package newfile_fla
Section 32
//chians_362 (newfile_fla.chians_362)
package newfile_fla {
import flash.display.*;
public dynamic class chians_362 extends MovieClip {
public function chians_362(){
addFrameScript(5, frame6);
}
function frame6(){
stop();
}
}
}//package newfile_fla
Section 33
//cvbcvbcvbvcy_78_1_loader_20 (newfile_fla.cvbcvbcvbvcy_78_1_loader_20)
package newfile_fla {
import flash.display.*;
public dynamic class cvbcvbcvbvcy_78_1_loader_20 extends MovieClip {
public function cvbcvbcvbvcy_78_1_loader_20(){
addFrameScript(56, frame57);
}
function frame57(){
stop();
}
}
}//package newfile_fla
Section 34
//dolt_479 (newfile_fla.dolt_479)
package newfile_fla {
import flash.display.*;
public dynamic class dolt_479 extends MovieClip {
public var dress:MovieClip;
public var earring:MovieClip;
public var bottoms:MovieClip;
public var tops:MovieClip;
public var chain:MovieClip;
public var shoes:MovieClip;
}
}//package newfile_fla
Section 35
//drespal_186 (newfile_fla.drespal_186)
package newfile_fla {
import flash.display.*;
public dynamic class drespal_186 extends MovieClip {
public var a6:MovieClip;
public var a4:MovieClip;
public var a9:MovieClip;
public var a5:MovieClip;
public var a8:MovieClip;
public var a13:MovieClip;
public var a14:MovieClip;
public var a15:MovieClip;
public var a11:MovieClip;
public var a10:MovieClip;
public var a12:MovieClip;
public var a2:MovieClip;
public var a3:MovieClip;
public var a7:MovieClip;
public var a1:MovieClip;
}
}//package newfile_fla
Section 36
//dress_382 (newfile_fla.dress_382)
package newfile_fla {
import flash.display.*;
public dynamic class dress_382 extends MovieClip {
public function dress_382(){
addFrameScript(15, frame16);
}
function frame16(){
stop();
}
}
}//package newfile_fla
Section 37
//dresst_488 (newfile_fla.dresst_488)
package newfile_fla {
import flash.display.*;
public dynamic class dresst_488 extends MovieClip {
public function dresst_488(){
addFrameScript(0, frame1, 16, frame17);
}
function frame1(){
stop();
}
function frame17(){
gotoAndStop(2);
}
}
}//package newfile_fla
Section 38
//earringpalette_155 (newfile_fla.earringpalette_155)
package newfile_fla {
import flash.display.*;
public dynamic class earringpalette_155 extends MovieClip {
public var e2:MovieClip;
public var e5:MovieClip;
public var e3:MovieClip;
public var e4:MovieClip;
public var e1:MovieClip;
}
}//package newfile_fla
Section 39
//eart_583 (newfile_fla.eart_583)
package newfile_fla {
import flash.display.*;
public dynamic class eart_583 extends MovieClip {
public function eart_583(){
addFrameScript(0, frame1, 6, frame7);
}
function frame7(){
gotoAndStop(2);
}
function frame1(){
stop();
}
}
}//package newfile_fla
Section 40
//fawryryur_83 (newfile_fla.fawryryur_83)
package newfile_fla {
import flash.display.*;
public dynamic class fawryryur_83 extends MovieClip {
public function fawryryur_83(){
addFrameScript(112, frame113);
}
function frame113(){
}
}
}//package newfile_fla
Section 41
//hkjkhhluuueu_67 (newfile_fla.hkjkhhluuueu_67)
package newfile_fla {
import flash.display.*;
public dynamic class hkjkhhluuueu_67 extends MovieClip {
public var d3:MovieClip;
}
}//package newfile_fla
Section 42
//lklj_433 (newfile_fla.lklj_433)
package newfile_fla {
import flash.display.*;
public dynamic class lklj_433 extends MovieClip {
public function lklj_433(){
addFrameScript(0, frame1, 29, frame30, 199, frame200);
}
function frame200(){
gotoAndPlay(2);
}
function frame1(){
stop();
}
function frame30(){
stop();
}
}
}//package newfile_fla
Section 43
//lklj_443 (newfile_fla.lklj_443)
package newfile_fla {
import flash.display.*;
public dynamic class lklj_443 extends MovieClip {
public function lklj_443(){
addFrameScript(0, frame1, 29, frame30, 199, frame200);
}
function frame200(){
gotoAndPlay(2);
}
function frame1(){
stop();
}
function frame30(){
stop();
}
}
}//package newfile_fla
Section 44
//lklj_444 (newfile_fla.lklj_444)
package newfile_fla {
import flash.display.*;
public dynamic class lklj_444 extends MovieClip {
public function lklj_444(){
addFrameScript(0, frame1, 29, frame30, 199, frame200);
}
function frame200(){
gotoAndPlay(2);
}
function frame1(){
stop();
}
function frame30(){
stop();
}
}
}//package newfile_fla
Section 45
//lklj_445 (newfile_fla.lklj_445)
package newfile_fla {
import flash.display.*;
public dynamic class lklj_445 extends MovieClip {
public function lklj_445(){
addFrameScript(0, frame1, 29, frame30, 199, frame200);
}
function frame200(){
gotoAndStop(2);
}
function frame1(){
stop();
}
function frame30(){
stop();
}
}
}//package newfile_fla
Section 46
//lklj_446 (newfile_fla.lklj_446)
package newfile_fla {
import flash.display.*;
public dynamic class lklj_446 extends MovieClip {
public function lklj_446(){
addFrameScript(0, frame1, 29, frame30, 199, frame200);
}
function frame200(){
gotoAndPlay(2);
}
function frame1(){
stop();
}
function frame30(){
stop();
}
}
}//package newfile_fla
Section 47
//lklj_447 (newfile_fla.lklj_447)
package newfile_fla {
import flash.display.*;
public dynamic class lklj_447 extends MovieClip {
public function lklj_447(){
addFrameScript(0, frame1, 29, frame30, 199, frame200);
}
function frame200(){
gotoAndPlay(2);
}
function frame1(){
stop();
}
function frame30(){
stop();
}
}
}//package newfile_fla
Section 48
//lklj_448 (newfile_fla.lklj_448)
package newfile_fla {
import flash.display.*;
public dynamic class lklj_448 extends MovieClip {
public function lklj_448(){
addFrameScript(0, frame1, 29, frame30, 199, frame200);
}
function frame200(){
gotoAndPlay(2);
}
function frame1(){
stop();
}
function frame30(){
stop();
}
}
}//package newfile_fla
Section 49
//lklj_456 (newfile_fla.lklj_456)
package newfile_fla {
import flash.display.*;
public dynamic class lklj_456 extends MovieClip {
public function lklj_456(){
addFrameScript(0, frame1, 29, frame30, 204, frame205);
}
function frame205(){
gotoAndPlay(2);
}
function frame1(){
stop();
}
function frame30(){
stop();
}
}
}//package newfile_fla
Section 50
//lklj_457 (newfile_fla.lklj_457)
package newfile_fla {
import flash.display.*;
public dynamic class lklj_457 extends MovieClip {
public function lklj_457(){
addFrameScript(0, frame1, 29, frame30, 199, frame200);
}
function frame200(){
gotoAndPlay(2);
}
function frame1(){
stop();
}
function frame30(){
stop();
}
}
}//package newfile_fla
Section 51
//lklj_458 (newfile_fla.lklj_458)
package newfile_fla {
import flash.display.*;
public dynamic class lklj_458 extends MovieClip {
public function lklj_458(){
addFrameScript(0, frame1, 29, frame30, 199, frame200);
}
function frame200(){
gotoAndPlay(2);
}
function frame1(){
stop();
}
function frame30(){
stop();
}
}
}//package newfile_fla
Section 52
//lklj_459 (newfile_fla.lklj_459)
package newfile_fla {
import flash.display.*;
public dynamic class lklj_459 extends MovieClip {
public function lklj_459(){
addFrameScript(0, frame1, 29, frame30, 199, frame200);
}
function frame200(){
gotoAndPlay(2);
}
function frame1(){
stop();
}
function frame30(){
stop();
}
}
}//package newfile_fla
Section 53
//lklj_460 (newfile_fla.lklj_460)
package newfile_fla {
import flash.display.*;
public dynamic class lklj_460 extends MovieClip {
public function lklj_460(){
addFrameScript(0, frame1, 29, frame30, 199, frame200);
}
function frame200(){
gotoAndPlay(2);
}
function frame1(){
stop();
}
function frame30(){
stop();
}
}
}//package newfile_fla
Section 54
//lklj_461 (newfile_fla.lklj_461)
package newfile_fla {
import flash.display.*;
public dynamic class lklj_461 extends MovieClip {
public function lklj_461(){
addFrameScript(0, frame1, 29, frame30, 199, frame200);
}
function frame200(){
gotoAndPlay(2);
}
function frame1(){
stop();
}
function frame30(){
stop();
}
}
}//package newfile_fla
Section 55
//lklj_462 (newfile_fla.lklj_462)
package newfile_fla {
import flash.display.*;
public dynamic class lklj_462 extends MovieClip {
public function lklj_462(){
addFrameScript(0, frame1, 29, frame30, 199, frame200);
}
function frame200(){
gotoAndPlay(2);
}
function frame1(){
stop();
}
function frame30(){
stop();
}
}
}//package newfile_fla
Section 56
//MainTimeline (newfile_fla.MainTimeline)
package newfile_fla {
import gs.*;
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.filters.*;
import gs.easing.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.errors.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var dressstand:MovieClip;
public var girlDoll:String;
public var scrolling:Boolean;
public var s0:Number;
public var lightanim:MovieClip;
public var crunt:MovieClip;
public var t2:TextField;
public var t1:TextField;
public var d0:Number;
public var earstand:MovieClip;
public var topsf:Number;
public var C0:Number;
public var preloader:MovieClip;
public var palette:MovieClip;
public var bottomstand:MovieClip;
public var dolls:MovieClip;
public var nextbtn:MovieClip;
public var lightoff:SimpleButton;
public var to:Number;
public var percentage:Number;
public var contestMenu:ContextMenu;
public var popup:MovieClip;
public var resetbtn:MovieClip;
public var logo_mc:SimpleButton;
public var bounds:Rectangle;
public var eo:Number;
public var myMask:MovieClip;
public var girldollArray:Array;
public var BitsLoaded:TextField;
public var queCount:uint;
public var lightbol:Boolean;
public var deer:MovieClip;
public var mailArray:Array;
public var lightbool:Boolean;
public var sndon:SimpleButton;
public var bullet:backscore;
public var snow1:MovieClip;
public var scrollMC:MovieClip;
public var oldY:Number;
public var dressf:Number;
public var light:MovieClip;
public var l1:MovieClip;
public var l3:MovieClip;
public var l4:MovieClip;
public var l8:MovieClip;
public var l2:MovieClip;
public var l5:MovieClip;
public var doll:MovieClip;
public var l6:MovieClip;
public var light123:MovieClip;
public var l9:MovieClip;
public var sndoff:SimpleButton;
public var l7:MovieClip;
public var lighton:SimpleButton;
public var curntstatus:Number;
public var l10:MovieClip;
public var l13:MovieClip;
public var l14:MovieClip;
public var l15:MovieClip;
public var l16:MovieClip;
public var l11:MovieClip;
public var l12:MovieClip;
public var topstand:MovieClip;
public var bots:Number;
public var nex:SimpleButton;
public var bulletChannel:SoundChannel;
public var email:MovieClip;
public var chainstand:MovieClip;
public var contextmenuItem:ContextMenuItem;
public var CONTENT_HEIGHT:Number;
public var shoestand:MovieClip;
public var MASK_HEIGHT:Number;
public var q0:Number;
public var pl:MovieClip;
public var ball:MovieClip;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5);
}
public function chainsdrag(_arg1:MouseEvent):void{
var chaincount:Number;
var chainss:Class;
var chains:Object;
var putchains:Function;
var e1 = _arg1;
putchains = function (_arg1:MouseEvent){
removeChild(DisplayObject(chains));
if (chains.hitTestObject(doll)){
doll.chain.gotoAndStop((chaincount + 1));
Globe.chain = doll.chain.currentFrame;
};
};
chaincount = Globe.chainstand;
chainss = (getDefinitionByName(("chain" + chaincount)) as Class);
chains = new (chainss);
addChild(DisplayObject(chains));
chains.x = mouseX;
chains.y = mouseY;
chains.startDrag(true);
chains.addEventListener(MouseEvent.MOUSE_UP, putchains);
}
public function shoesdrag(_arg1:MouseEvent):void{
var shoecount:Number;
var shoess:Class;
var shoes:Object;
var putshoes:Function;
var e1 = _arg1;
putshoes = function (_arg1:MouseEvent){
removeChild(DisplayObject(shoes));
if (shoes.hitTestObject(doll)){
doll.shoes.gotoAndStop((shoecount + 1));
Globe.shoes = doll.shoes.currentFrame;
};
};
shoecount = Globe.shoestand;
shoess = (getDefinitionByName(("shoes" + shoecount)) as Class);
shoes = new (shoess);
addChild(DisplayObject(shoes));
shoes.x = mouseX;
shoes.y = mouseY;
shoes.startDrag(true);
shoes.addEventListener(MouseEvent.MOUSE_UP, putshoes);
}
public function result(_arg1:Event):void{
if (t1.text == ""){
nextbtn.visible = false;
} else {
nextbtn.visible = true;
};
}
public function dresssdrag(_arg1:MouseEvent):void{
var dresscount:Number;
var dresss:Class;
var dress:Object;
var putdress:Function;
var d1 = _arg1;
putdress = function (_arg1:MouseEvent){
removeChild(DisplayObject(dress));
if (dress.hitTestObject(doll)){
doll.dress.gotoAndStop((dresscount + 1));
Globe.dress = doll.dress.currentFrame;
doll.tops.gotoAndStop(1);
doll.bottoms.gotoAndStop(1);
Globe.tops = 0;
Globe.bottoms = 0;
dressf = 1;
topsf = 0;
bots = 0;
};
};
dresscount = Globe.dressstand;
dresss = (getDefinitionByName(("dress" + dresscount)) as Class);
dress = new (dresss);
addChild(DisplayObject(dress));
dress.x = mouseX;
dress.y = mouseY;
dress.startDrag(true);
dress.addEventListener(MouseEvent.MOUSE_UP, putdress);
}
public function sets(_arg1:Event){
if (dressf == 1){
nextbtn.visible = true;
} else {
if ((((topsf == 1)) && ((bots == 1)))){
nextbtn.visible = true;
} else {
nextbtn.visible = false;
};
};
}
public function lightfn(_arg1:MouseEvent):void{
if (lightbool){
lightoff.visible = false;
lighton.visible = true;
lightanim.gotoAndPlay(2);
l1.gotoAndPlay(2);
l2.gotoAndPlay(2);
l3.gotoAndPlay(2);
l4.gotoAndPlay(2);
l5.gotoAndPlay(2);
l6.gotoAndPlay(2);
l7.gotoAndPlay(2);
l8.gotoAndPlay(2);
l9.gotoAndPlay(2);
l10.gotoAndPlay(2);
l11.gotoAndPlay(2);
l12.gotoAndPlay(2);
l13.gotoAndPlay(2);
l14.gotoAndPlay(2);
l15.gotoAndPlay(2);
l16.gotoAndPlay(2);
lightbool = false;
} else {
lightoff.visible = true;
lighton.visible = false;
lightanim.gotoAndStop(1);
l1.gotoAndStop(1);
l2.gotoAndStop(1);
l3.gotoAndStop(1);
l4.gotoAndStop(1);
l5.gotoAndStop(1);
l6.gotoAndStop(1);
l7.gotoAndStop(1);
l8.gotoAndStop(1);
l9.gotoAndStop(1);
l10.gotoAndStop(1);
l11.gotoAndStop(1);
l12.gotoAndStop(1);
l13.gotoAndStop(1);
l14.gotoAndStop(1);
l15.gotoAndStop(1);
l16.gotoAndStop(1);
lightbool = true;
};
}
public function lighfn(_arg1:MouseEvent):void{
if (lightbol){
lightoff.visible = false;
lighton.visible = true;
lightanim.gotoAndPlay(2);
l1.gotoAndPlay(2);
l2.gotoAndPlay(2);
l3.gotoAndPlay(2);
l4.gotoAndPlay(2);
l5.gotoAndPlay(2);
l6.gotoAndPlay(2);
l7.gotoAndPlay(2);
l8.gotoAndPlay(2);
l9.gotoAndPlay(2);
l10.gotoAndPlay(2);
l11.gotoAndPlay(2);
l12.gotoAndPlay(2);
l13.gotoAndPlay(2);
l14.gotoAndPlay(2);
l15.gotoAndPlay(2);
l16.gotoAndPlay(2);
lightbol = false;
} else {
lightoff.visible = true;
lighton.visible = false;
lightanim.gotoAndStop(1);
l1.gotoAndStop(1);
l2.gotoAndStop(1);
l3.gotoAndStop(1);
l4.gotoAndStop(1);
l5.gotoAndStop(1);
l6.gotoAndStop(1);
l7.gotoAndStop(1);
l8.gotoAndStop(1);
l9.gotoAndStop(1);
l10.gotoAndStop(1);
l11.gotoAndStop(1);
l12.gotoAndStop(1);
l13.gotoAndStop(1);
l14.gotoAndStop(1);
l15.gotoAndStop(1);
l16.gotoAndStop(1);
lightbol = true;
};
}
function frame4(){
stop();
t1.text = "";
nextbtn.buttonMode = true;
stage.addEventListener(Event.ENTER_FRAME, result);
nextbtn.addEventListener(MouseEvent.CLICK, nextbtns);
if (loaderInfo.url.match("123peppy")){
logo_mc.visible = false;
sndoff.x = 27.9;
sndoff.y = 571.6;
sndon.x = 24.6;
sndon.y = 570.3;
} else {
logo_mc.addEventListener(MouseEvent.CLICK, link1);
};
}
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(){
stop();
lightbool = true;
palette.topspalette.visible = true;
palette.bottomspalette.visible = false;
palette.adresspalette.visible = false;
palette.chainpalette.visible = false;
palette.shoespalette.visible = false;
palette.earringpalette.visible = false;
nextbtn.visible = false;
light.addEventListener(MouseEvent.CLICK, lightfn);
topstand.buttonMode = true;
earstand.buttonMode = true;
shoestand.buttonMode = true;
bottomstand.buttonMode = true;
dressstand.buttonMode = true;
bottomstand.buttonMode = true;
chainstand.buttonMode = true;
light.alpha = 0.5;
light.buttonMode = true;
lighton.mouseEnabled = false;
lightoff.mouseEnabled = false;
lightoff.visible = true;
lighton.visible = false;
curntstatus = 1;
crunt.left.buttonMode = true;
crunt.right.buttonMode = true;
crunt.left.addEventListener(MouseEvent.CLICK, lftfn);
crunt.right.addEventListener(MouseEvent.CLICK, rgtfn);
dressf = 0;
topsf = 0;
bots = 0;
doll.dress.gotoAndStop(1);
doll.shoes.gotoAndStop(1);
doll.chain.gotoAndStop(1);
doll.tops.gotoAndStop(1);
doll.bottoms.gotoAndStop(1);
doll.earring.gotoAndStop(1);
bullet = new backscore();
bulletChannel = bullet.play(0, int.MAX_VALUE);
sndoff.addEventListener(MouseEvent.CLICK, sndop);
sndon.addEventListener(MouseEvent.CLICK, sndst);
stage.addEventListener(Event.ENTER_FRAME, sets);
light123.mouseChildren = false;
light123.mouseEnabled = false;
to = 0;
while (to <= (palette.topspalette.numChildren - 1)) {
palette.topspalette.getChildAt(to).addEventListener(MouseEvent.ROLL_OVER, enabl);
palette.topspalette.getChildAt(to).addEventListener(MouseEvent.CLICK, topsclick);
to++;
};
topstand.addEventListener(MouseEvent.MOUSE_DOWN, topsdrag);
q0 = 0;
while (q0 <= (palette.adresspalette.numChildren - 1)) {
palette.adresspalette.getChildAt(q0).addEventListener(MouseEvent.ROLL_OVER, enabl);
palette.adresspalette.getChildAt(q0).addEventListener(MouseEvent.CLICK, dressclick);
q0++;
};
dressstand.addEventListener(MouseEvent.MOUSE_DOWN, dresssdrag);
C0 = 0;
while (C0 <= (palette.chainpalette.numChildren - 1)) {
palette.chainpalette.getChildAt(C0).addEventListener(MouseEvent.ROLL_OVER, enabl);
palette.chainpalette.getChildAt(C0).addEventListener(MouseEvent.CLICK, chainclick);
C0++;
};
chainstand.addEventListener(MouseEvent.MOUSE_DOWN, chainsdrag);
eo = 0;
while (eo <= (palette.earringpalette.numChildren - 1)) {
palette.earringpalette.getChildAt(eo).addEventListener(MouseEvent.ROLL_OVER, enabl);
palette.earringpalette.getChildAt(eo).addEventListener(MouseEvent.CLICK, earsclick);
eo++;
};
earstand.addEventListener(MouseEvent.MOUSE_DOWN, eardrag);
d0 = 0;
while (d0 <= (palette.bottomspalette.numChildren - 1)) {
palette.bottomspalette.getChildAt(d0).addEventListener(MouseEvent.ROLL_OVER, enabl);
palette.bottomspalette.getChildAt(d0).addEventListener(MouseEvent.CLICK, bottomsclick);
d0++;
};
bottomstand.addEventListener(MouseEvent.MOUSE_DOWN, bottomsdrag);
s0 = 0;
while (s0 <= (palette.shoespalette.numChildren - 1)) {
palette.shoespalette.getChildAt(s0).addEventListener(MouseEvent.ROLL_OVER, enabl);
palette.shoespalette.getChildAt(s0).addEventListener(MouseEvent.CLICK, shoesclick);
s0++;
};
shoestand.addEventListener(MouseEvent.MOUSE_DOWN, shoesdrag);
resetbtn.addEventListener(MouseEvent.CLICK, res);
resetbtn.gotoAndStop(Globe.temp);
nextbtn.gotoAndStop(Globe.temp);
nextbtn.addEventListener(MouseEvent.CLICK, nx);
nextbtn.buttonMode = true;
resetbtn.buttonMode = true;
if (loaderInfo.url.match("123peppy")){
logo_mc.visible = false;
sndoff.x = 27.9;
sndoff.y = 571.6;
sndon.x = 24.6;
sndon.y = 570.3;
} else {
logo_mc.addEventListener(MouseEvent.CLICK, link);
};
CONTENT_HEIGHT = 818.3;
MASK_HEIGHT = 503.7;
oldY = palette.y;
palette.x = myMask.x;
palette.y = myMask.y;
palette.mask = myMask;
bounds = new Rectangle(scrollMC.x, scrollMC.y, 0, 407);
scrolling = false;
scrollMC.addEventListener(MouseEvent.MOUSE_DOWN, startScroll);
stage.addEventListener(MouseEvent.MOUSE_UP, stopScroll);
addEventListener(Event.ENTER_FRAME, enterHandler);
}
function frame2(){
stop();
Globe.playback = true;
if (bulletChannel){
bulletChannel.stop();
};
pl.buttonMode = true;
pl.addEventListener(MouseEvent.CLICK, plays);
}
function frame5(){
stop();
if (((this.loaderInfo.parameters.bg) && ((Globe.playback == false)))){
email.addEventListener(MouseEvent.CLICK, showMailBox);
popup.close.addEventListener(MouseEvent.CLICK, hideMailBox);
popup.addition.addEventListener(MouseEvent.CLICK, showExtra);
popup.submit.addEventListener(MouseEvent.CLICK, callMail);
t2.text = this.loaderInfo.parameters.name;
email.visible = true;
email.tabEnabled = false;
girldollArray = this.loaderInfo.parameters.girldoll.split("");
if (this.loaderInfo.parameters.bg == 1){
dolls.dress.gotoAndStop(Number(girldollArray[0]).toString());
dolls.tops.gotoAndStop(Number(girldollArray[1]));
dolls.bottoms.gotoAndStop(Number(girldollArray[2]));
dolls.chain.gotoAndStop(Number(girldollArray[3]));
dolls.shoes.gotoAndStop(Number(girldollArray[4]));
dolls.earring.gotoAndStop(Number(girldollArray[5]));
} else {
if (this.loaderInfo.parameters.bg == 2){
dolls.dress.gotoAndStop(Number(girldollArray[0]).toString());
dolls.tops.gotoAndStop((Number(girldollArray[1]).toString() + Number(girldollArray[2]).toString()));
dolls.bottoms.gotoAndStop((Number(girldollArray[3]).toString() + Number(girldollArray[4]).toString()));
dolls.chain.gotoAndStop(Number(girldollArray[5]));
dolls.shoes.gotoAndStop(Number(girldollArray[6]));
dolls.earring.gotoAndStop(Number(girldollArray[7]));
} else {
if (this.loaderInfo.parameters.bg == 3){
dolls.dress.gotoAndStop(Number(girldollArray[0]).toString());
dolls.tops.gotoAndStop(Number(girldollArray[1]));
dolls.bottoms.gotoAndStop((Number(girldollArray[2]).toString() + Number(girldollArray[3]).toString()));
dolls.chain.gotoAndStop(Number(girldollArray[4]));
dolls.shoes.gotoAndStop(Number(girldollArray[5]));
dolls.earring.gotoAndStop(Number(girldollArray[6]));
} else {
if (this.loaderInfo.parameters.bg == 4){
dolls.dress.gotoAndStop(Number(girldollArray[0]).toString());
dolls.tops.gotoAndStop((Number(girldollArray[1]).toString() + Number(girldollArray[2]).toString()));
dolls.bottoms.gotoAndStop(Number(girldollArray[3]));
dolls.chain.gotoAndStop(Number(girldollArray[4]));
dolls.shoes.gotoAndStop(Number(girldollArray[5]));
dolls.earring.gotoAndStop(Number(girldollArray[6]));
} else {
if (this.loaderInfo.parameters.bg == 5){
dolls.dress.gotoAndStop((Number(girldollArray[0]).toString() + Number(girldollArray[1]).toString()));
dolls.tops.gotoAndStop(Number(girldollArray[2]).toString());
dolls.bottoms.gotoAndStop(Number(girldollArray[3]));
dolls.chain.gotoAndStop(Number(girldollArray[4]));
dolls.shoes.gotoAndStop(Number(girldollArray[5]));
dolls.earring.gotoAndStop(Number(girldollArray[6]));
};
};
};
};
};
nex.addEventListener(MouseEvent.CLICK, plas1);
} else {
if (Globe.playback == true){
t2.text = Globe.tex;
email.visible = true;
email.buttonMode = true;
email.tabEnabled = false;
dolls.chain.gotoAndStop(Globe.chain);
dolls.shoes.gotoAndStop(Globe.shoes);
dolls.earring.gotoAndStop(Globe.earring);
dolls.dress.gotoAndStop(Globe.dress);
dolls.tops.gotoAndStop(Globe.tops);
dolls.bottoms.gotoAndStop(Globe.bottoms);
nex.addEventListener(MouseEvent.CLICK, plas);
email.addEventListener(MouseEvent.CLICK, showMailBox);
popup.close.addEventListener(MouseEvent.CLICK, hideMailBox);
popup.addition.addEventListener(MouseEvent.CLICK, showExtra);
popup.submit.addEventListener(MouseEvent.CLICK, callMail);
};
};
lightbol = true;
light.addEventListener(MouseEvent.CLICK, lighfn);
light.alpha = 0.5;
light.buttonMode = true;
lighton.mouseEnabled = false;
lightoff.mouseEnabled = false;
lightoff.visible = true;
lighton.visible = false;
if (loaderInfo.url.match("123peppy")){
logo_mc.visible = false;
sndoff.x = 27.9;
sndoff.y = 571.6;
sndon.x = 24.6;
sndon.y = 570.3;
logo_mc.addEventListener(MouseEvent.CLICK, link5);
};
queCount = 0;
mailArray = new Array(popup.friend1, popup.friend2, popup.friend3, popup.friend4);
girlDoll = (((((dolls.dress.currentFrame.toString() + dolls.tops.currentFrame.toString()) + dolls.bottoms.currentFrame.toString()) + dolls.chain.currentFrame.toString()) + dolls.shoes.currentFrame.toString()) + dolls.earring.currentFrame.toString());
trace(girlDoll);
}
public function lftfn(_arg1:MouseEvent):void{
curntstatus++;
crunt.cruntstatus.gotoAndStop(curntstatus);
if (curntstatus == 7){
curntstatus = 6;
crunt.left.buttonMode = false;
crunt.right.buttonMode = true;
} else {
crunt.left.buttonMode = true;
};
switch (curntstatus){
case 1:
scrollMC.y = 17.2;
CONTENT_HEIGHT = 1000;
palette.y = -4.1;
palette.topspalette.visible = true;
palette.bottomspalette.visible = false;
palette.adresspalette.visible = false;
palette.chainpalette.visible = false;
palette.shoespalette.visible = false;
palette.earringpalette.visible = false;
earstand.visible = false;
shoestand.visible = false;
bottomstand.visible = false;
dressstand.visible = false;
topstand.visible = true;
bottomstand.visible = false;
chainstand.visible = false;
dressstand.gotoAndStop(16);
topstand.gotoAndStop(11);
bottomstand.gotoAndStop(10);
shoestand.gotoAndStop(6);
earstand.gotoAndStop(6);
chainstand.gotoAndStop(6);
break;
case 2:
CONTENT_HEIGHT = 850;
scrollMC.y = 17.2;
palette.y = -4.1;
palette.topspalette.visible = false;
palette.bottomspalette.visible = true;
palette.adresspalette.visible = false;
palette.chainpalette.visible = false;
palette.shoespalette.visible = false;
palette.earringpalette.visible = false;
earstand.visible = false;
shoestand.visible = false;
bottomstand.visible = true;
dressstand.visible = false;
topstand.visible = false;
dressstand.visible = false;
chainstand.visible = false;
dressstand.gotoAndStop(16);
topstand.gotoAndStop(11);
bottomstand.gotoAndStop(10);
shoestand.gotoAndStop(6);
earstand.gotoAndStop(6);
chainstand.gotoAndStop(6);
break;
case 3:
dressstand.visible = true;
scrollMC.y = 17.2;
palette.y = -4.1;
CONTENT_HEIGHT = 1300;
palette.topspalette.visible = false;
palette.bottomspalette.visible = false;
palette.adresspalette.visible = true;
palette.chainpalette.visible = false;
palette.shoespalette.visible = false;
palette.earringpalette.visible = false;
earstand.visible = false;
shoestand.visible = false;
bottomstand.visible = false;
topstand.visible = false;
chainstand.visible = false;
dressstand.gotoAndStop(16);
topstand.gotoAndStop(11);
bottomstand.gotoAndStop(10);
shoestand.gotoAndStop(6);
earstand.gotoAndStop(6);
chainstand.gotoAndStop(6);
break;
case 4:
CONTENT_HEIGHT = 400;
scrollMC.y = 17.2;
palette.y = -4.1;
palette.topspalette.visible = false;
palette.bottomspalette.visible = false;
palette.adresspalette.visible = false;
palette.chainpalette.visible = true;
palette.shoespalette.visible = false;
palette.earringpalette.visible = false;
earstand.visible = false;
shoestand.visible = false;
bottomstand.visible = false;
dressstand.visible = false;
topstand.visible = false;
dressstand.visible = false;
chainstand.visible = true;
dressstand.gotoAndStop(16);
topstand.gotoAndStop(11);
bottomstand.gotoAndStop(10);
shoestand.gotoAndStop(6);
earstand.gotoAndStop(6);
chainstand.gotoAndStop(6);
break;
case 5:
CONTENT_HEIGHT = 400;
scrollMC.y = 17.2;
palette.y = -4.1;
palette.topspalette.visible = false;
palette.bottomspalette.visible = false;
palette.adresspalette.visible = false;
palette.chainpalette.visible = false;
palette.shoespalette.visible = false;
palette.earringpalette.visible = true;
earstand.visible = true;
shoestand.visible = false;
bottomstand.visible = false;
dressstand.visible = false;
topstand.visible = false;
dressstand.visible = false;
chainstand.visible = false;
dressstand.gotoAndStop(16);
topstand.gotoAndStop(11);
bottomstand.gotoAndStop(10);
shoestand.gotoAndStop(6);
earstand.gotoAndStop(6);
chainstand.gotoAndStop(6);
break;
case 6:
CONTENT_HEIGHT = 400;
scrollMC.y = 17.2;
palette.y = -4.1;
palette.topspalette.visible = false;
palette.bottomspalette.visible = false;
palette.adresspalette.visible = false;
palette.chainpalette.visible = false;
palette.shoespalette.visible = true;
palette.earringpalette.visible = false;
earstand.visible = false;
shoestand.visible = true;
bottomstand.visible = false;
dressstand.visible = false;
topstand.visible = false;
dressstand.visible = false;
chainstand.visible = false;
dressstand.gotoAndStop(16);
topstand.gotoAndStop(11);
bottomstand.gotoAndStop(10);
shoestand.gotoAndStop(6);
earstand.gotoAndStop(6);
chainstand.gotoAndStop(6);
break;
};
}
public function res(_arg1:MouseEvent):void{
doll.dress.gotoAndStop(1);
doll.shoes.gotoAndStop(1);
doll.chain.gotoAndStop(1);
doll.earring.gotoAndStop(1);
doll.tops.gotoAndStop(1);
doll.bottoms.gotoAndStop(1);
doll.bags.gotoAndStop(1);
dressf = 0;
topsf = 0;
bots = 0;
Globe.dress = 0;
Globe.tops = 0;
Globe.bottoms = 0;
Globe.chain = 0;
Globe.shoes = 0;
Globe.earring = 0;
}
public function topsclick(_arg1:MouseEvent):void{
var t1:*;
var t:Number;
var tops:Function;
var tt = _arg1;
tops = function (){
topstand.gotoAndStop(t);
Globe.topstand = topstand.currentFrame;
};
topstand.y = -1000;
Globe.topstand = 0;
t1 = tt.currentTarget;
t = parseInt(t1.name.substr(1));
TweenLite.to(topstand, 0.5, {y:296.1, ease:Circ.easeOut, onStart:tops});
}
public function plas1(_arg1:MouseEvent){
gotoAndStop(2);
}
public function showMailBox(_arg1:MouseEvent):void{
email.mouseEnabled = false;
TweenLite.to(popup, 0.5, {y:(600 - popup.height), ease:Back.easeOut});
popup.nameDetail.text = "";
popup.mailDetail.text = "";
popup.messageDetail.text = "";
popup.friendName.text = "";
popup.friendMail.text = "";
popup.friend1.friendMail.text = "";
popup.friend2.friendMail.text = "";
popup.friend3.friendMail.text = "";
popup.friend4.friendMail.text = "";
}
public function bottomsclick(_arg1:MouseEvent):void{
var t1:*;
var t:Number;
var bottom:Function;
var tt = _arg1;
bottom = function (){
bottomstand.gotoAndStop(t);
Globe.bottomstand = bottomstand.currentFrame;
bottomstand.buttonMode = true;
};
bottomstand.y = -1000;
Globe.bottomstand = 0;
t1 = tt.currentTarget;
t = parseInt(t1.name.substr(1));
TweenLite.to(bottomstand, 0.5, {y:251.3, ease:Circ.easeOut, onStart:bottom});
}
public function bottomsdrag(_arg1:MouseEvent):void{
var bottomcount:Number;
var bottomss:Class;
var bottoms:Object;
var putbottom:Function;
var e1 = _arg1;
putbottom = function (_arg1:MouseEvent){
removeChild(DisplayObject(bottoms));
if (bottoms.hitTestObject(doll)){
doll.bottoms.gotoAndStop((bottomcount + 1));
Globe.bottoms = doll.bottoms.currentFrame;
doll.dress.gotoAndStop(1);
Globe.dress = 0;
dressf = 0;
bots = 1;
};
};
bottomcount = Globe.bottomstand;
bottomss = (getDefinitionByName(("bottom" + bottomcount)) as Class);
bottoms = new (bottomss);
addChild(DisplayObject(bottoms));
bottoms.x = mouseX;
bottoms.y = mouseY;
bottoms.startDrag(true);
bottoms.addEventListener(MouseEvent.MOUSE_UP, putbottom);
}
public function hideMailBox(_arg1:MouseEvent):void{
var event = _arg1;
email.mouseEnabled = true;
TweenLite.to(popup, 0.5, {y:(600 + popup.height), ease:Back.easeIn});
var _local3 = popup;
with (_local3) {
friend1.visible = (friend2.visible = (friend3.visible = (friend4.visible = false)));
};
queCount = 0;
popup.nameDetail.text = "";
popup.mailDetail.text = "";
popup.messageDetail.text = "";
popup.friendName.text = "";
popup.friendMail.text = "";
popup.friend1.friendMail.text = "";
popup.friend2.friendMail.text = "";
popup.friend3.friendMail.text = "";
popup.friend4.friendMail.text = "";
}
public function showExtra(_arg1:MouseEvent):void{
if (queCount < 4){
mailArray[queCount].visible = true;
queCount++;
trace(queCount);
} else {
if (queCount == 4){
queCount = 0;
mailArray[queCount].visible = true;
queCount++;
};
};
}
public function sndop(_arg1:MouseEvent):void{
bulletChannel.stop();
sndon.visible = true;
sndoff.visible = false;
}
public function enabl(_arg1:MouseEvent):void{
_arg1.currentTarget.buttonMode = true;
}
public function nextbtns(_arg1:MouseEvent):void{
Globe.tex = t1.text;
trace(Globe.tex);
nextFrame();
stage.removeEventListener(Event.ENTER_FRAME, result);
}
public function plas(_arg1:MouseEvent){
gotoAndStop(2);
}
public function callMail(_arg1:MouseEvent):void{
var request:URLRequest;
var variables:URLVariables;
var event = _arg1;
email.mouseEnabled = true;
request = new URLRequest("http://facefun.123peppy.com/gamemail.php");
request.method = URLRequestMethod.POST;
variables = new URLVariables();
variables.nameDetail = popup.nameDetail.text;
variables.mailDetail = popup.mailDetail.text;
variables.messageDetail = popup.messageDetail.text;
variables.friendName = popup.friendName.text;
variables.friendMail = popup.friendMail.text;
variables.gamename = "Dianna Agron";
variables.friendMail1 = popup.friend1.friendMail.text;
variables.friendMail2 = popup.friend2.friendMail.text;
variables.friendMail3 = popup.friend3.friendMail.text;
variables.friendMail4 = popup.friend4.friendMail.text;
variables.girldoll = girlDoll;
variables.path = "http://www.123peppy.com/play/dianna-agron-dress-game";
variables.name = t2.text;
if (dolls.dress.currentFrame > 9){
variables.bg = 5;
} else {
if ((((dolls.tops.currentFrame > 9)) && ((dolls.bottoms.currentFrame < 9)))){
variables.bg = 4;
} else {
if ((((dolls.bottoms.currentFrame > 9)) && ((dolls.tops.currentFrame < 9)))){
variables.bg = 3;
} else {
if ((((dolls.tops.currentFrame > 9)) && ((dolls.bottoms.currentFrame > 9)))){
variables.bg = 2;
} else {
variables.bg = 1;
};
};
};
};
trace(variables.bg);
request.data = variables;
sendToURL(request);
TweenLite.to(popup, 0.5, {y:(600 + popup.height), ease:Back.easeIn});
var _local3 = popup;
with (_local3) {
friend1.visible = (friend2.visible = (friend3.visible = (friend4.visible = false)));
};
queCount = 0;
}
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 = (((Math.round((_local4 / 0x0400)) + "kBs /") + Math.round((_local5 / 0x0400))) + "kBs");
if (_local4 == _local5){
stage.removeEventListener(Event.ENTER_FRAME, BeeMoving);
if (this.loaderInfo.parameters.bg){
gotoAndStop(5);
} else {
gotoAndStop(2);
};
};
}
public function Site(_arg1:Event):void{
var _local2:URLRequest;
_local2 = new URLRequest("http://www.123peppy.com");
navigateToURL(_local2, "_blank");
}
public function stopScroll(_arg1:Event):void{
scrolling = false;
scrollMC.stopDrag();
}
public function chainclick(_arg1:MouseEvent):void{
var t1:*;
var t:Number;
var chain:Function;
var tt = _arg1;
chain = function (){
chainstand.gotoAndStop(t);
Globe.chainstand = chainstand.currentFrame;
};
chainstand.y = -1000;
Globe.chainstand = 0;
t1 = tt.currentTarget;
t = parseInt(t1.name.substr(1));
TweenLite.to(chainstand, 0.5, {y:314.1, ease:Circ.easeOut, onStart:chain});
}
public function link1(_arg1:MouseEvent){
var _local2:URLRequest;
_local2 = new URLRequest("http://www.123peppy.com");
navigateToURL(_local2, "_blank");
}
public function link5(_arg1:MouseEvent){
var _local2:URLRequest;
_local2 = new URLRequest("http://www.123peppy.com");
navigateToURL(_local2, "_blank");
}
public function enterHandler(_arg1:Event):void{
var _local2:Number;
var _local3:Number;
var _local4:Number;
if (scrolling == true){
_local2 = Math.round((scrollMC.y - bounds.y));
_local3 = (_local2 / MASK_HEIGHT);
oldY = palette.y;
_local4 = (-(((CONTENT_HEIGHT - MASK_HEIGHT) * _local3)) + myMask.y);
if (Math.abs((oldY - _local4)) > 5){
TweenMax.to(palette, 0.3, {y:_local4, blurFilter:{blurX:0, blurY:0}});
};
};
}
public function sndst(_arg1:MouseEvent):void{
bulletChannel = bullet.play(0, int.MAX_VALUE);
sndoff.visible = true;
sndon.visible = false;
}
public function eardrag(_arg1:MouseEvent):void{
var earcount:Number;
var earss:Class;
var ears:Object;
var putears:Function;
var e1 = _arg1;
putears = function (_arg1:MouseEvent){
removeChild(DisplayObject(ears));
if (ears.hitTestObject(doll)){
doll.earring.gotoAndStop((earcount + 1));
Globe.earring = doll.earring.currentFrame;
};
};
earcount = Globe.earstand;
earss = (getDefinitionByName(("ear" + earcount)) as Class);
ears = new (earss);
addChild(DisplayObject(ears));
ears.x = mouseX;
ears.y = mouseY;
ears.startDrag(true);
ears.addEventListener(MouseEvent.MOUSE_UP, putears);
}
public function shoesclick(_arg1:MouseEvent):void{
var t1:*;
var t:Number;
var shoe:Function;
var tt = _arg1;
shoe = function (){
shoestand.gotoAndStop(t);
Globe.shoestand = shoestand.currentFrame;
};
shoestand.y = -1000;
Globe.shoestand = 0;
t1 = tt.currentTarget;
t = parseInt(t1.name.substr(1));
TweenLite.to(shoestand, 0.5, {y:311.8, ease:Circ.easeOut, onStart:shoe});
}
public function dressclick(_arg1:MouseEvent):void{
var d1:*;
var d:Number;
var dresdsss:Function;
var dd = _arg1;
dresdsss = function (){
dressstand.gotoAndStop(d);
Globe.dressstand = dressstand.currentFrame;
};
dressstand.y = -1000;
Globe.dressstand = 0;
d1 = dd.currentTarget;
d = parseInt(d1.name.substr(1));
TweenLite.to(dressstand, 0.5, {y:273.6, ease:Circ.easeOut, onStart:dresdsss});
}
public function nx(_arg1:MouseEvent):void{
stage.removeEventListener(Event.ENTER_FRAME, sets);
stage.removeEventListener(MouseEvent.MOUSE_UP, stopScroll);
Globe.shoes = doll.shoes.currentFrame;
Globe.chain = doll.chain.currentFrame;
Globe.bottoms = doll.bottoms.currentFrame;
Globe.tops = doll.tops.currentFrame;
Globe.dress = doll.dress.currentFrame;
Globe.earring = doll.earring.currentFrame;
nextFrame();
}
public function plays(_arg1:MouseEvent):void{
nextFrame();
}
public function startScroll(_arg1:Event):void{
scrolling = true;
scrollMC.startDrag(false, bounds);
scrollMC.buttonMode = true;
}
public function earsclick(_arg1:MouseEvent):void{
var t1:*;
var t:Number;
var ear:Function;
var tt = _arg1;
ear = function (){
earstand.gotoAndStop(t);
Globe.earstand = earstand.currentFrame;
};
earstand.y = -1000;
Globe.earstand = 0;
t1 = tt.currentTarget;
t = parseInt(t1.name.substr(1));
TweenLite.to(earstand, 0.5, {y:323.1, ease:Circ.easeOut, onStart:ear});
}
public function rgtfn(_arg1:MouseEvent):void{
curntstatus--;
crunt.cruntstatus.gotoAndStop(curntstatus);
if (curntstatus == 0){
curntstatus = 1;
crunt.right.buttonMode = false;
crunt.left.buttonMode = true;
} else {
crunt.right.buttonMode = true;
};
switch (curntstatus){
case 1:
scrollMC.y = 17.2;
CONTENT_HEIGHT = 1000;
palette.y = -4.1;
palette.topspalette.visible = true;
palette.bottomspalette.visible = false;
palette.adresspalette.visible = false;
palette.chainpalette.visible = false;
palette.shoespalette.visible = false;
palette.earringpalette.visible = false;
earstand.visible = false;
shoestand.visible = false;
bottomstand.visible = false;
dressstand.visible = false;
topstand.visible = true;
bottomstand.visible = false;
chainstand.visible = false;
dressstand.gotoAndStop(16);
topstand.gotoAndStop(11);
bottomstand.gotoAndStop(10);
shoestand.gotoAndStop(6);
earstand.gotoAndStop(6);
chainstand.gotoAndStop(6);
break;
case 2:
CONTENT_HEIGHT = 850;
scrollMC.y = 17.2;
palette.y = -4.1;
palette.topspalette.visible = false;
palette.bottomspalette.visible = true;
palette.adresspalette.visible = false;
palette.chainpalette.visible = false;
palette.shoespalette.visible = false;
palette.earringpalette.visible = false;
earstand.visible = false;
shoestand.visible = false;
bottomstand.visible = true;
dressstand.visible = false;
topstand.visible = false;
dressstand.visible = false;
chainstand.visible = false;
dressstand.gotoAndStop(16);
topstand.gotoAndStop(11);
bottomstand.gotoAndStop(10);
shoestand.gotoAndStop(6);
earstand.gotoAndStop(6);
chainstand.gotoAndStop(6);
break;
case 3:
dressstand.visible = true;
scrollMC.y = 17.2;
CONTENT_HEIGHT = 1300;
palette.y = -4.1;
palette.topspalette.visible = false;
palette.bottomspalette.visible = false;
palette.adresspalette.visible = true;
palette.chainpalette.visible = false;
palette.shoespalette.visible = false;
palette.earringpalette.visible = false;
earstand.visible = false;
shoestand.visible = false;
bottomstand.visible = false;
topstand.visible = false;
chainstand.visible = false;
dressstand.gotoAndStop(16);
topstand.gotoAndStop(11);
bottomstand.gotoAndStop(10);
shoestand.gotoAndStop(6);
earstand.gotoAndStop(6);
chainstand.gotoAndStop(6);
break;
case 4:
CONTENT_HEIGHT = 400;
scrollMC.y = 17.2;
palette.y = -4.1;
palette.topspalette.visible = false;
palette.bottomspalette.visible = false;
palette.adresspalette.visible = false;
palette.chainpalette.visible = true;
palette.shoespalette.visible = false;
palette.earringpalette.visible = false;
earstand.visible = false;
shoestand.visible = false;
bottomstand.visible = false;
dressstand.visible = false;
topstand.visible = false;
dressstand.visible = false;
chainstand.visible = true;
dressstand.gotoAndStop(16);
topstand.gotoAndStop(11);
bottomstand.gotoAndStop(10);
shoestand.gotoAndStop(6);
earstand.gotoAndStop(6);
chainstand.gotoAndStop(6);
break;
case 5:
CONTENT_HEIGHT = 400;
scrollMC.y = 17.2;
palette.y = -4.1;
palette.topspalette.visible = false;
palette.bottomspalette.visible = false;
palette.adresspalette.visible = false;
palette.chainpalette.visible = false;
palette.shoespalette.visible = false;
palette.earringpalette.visible = true;
earstand.visible = true;
shoestand.visible = false;
bottomstand.visible = false;
dressstand.visible = false;
topstand.visible = false;
dressstand.visible = false;
chainstand.visible = false;
dressstand.gotoAndStop(16);
topstand.gotoAndStop(11);
bottomstand.gotoAndStop(10);
shoestand.gotoAndStop(6);
earstand.gotoAndStop(6);
chainstand.gotoAndStop(6);
break;
case 6:
CONTENT_HEIGHT = 400;
scrollMC.y = 17.2;
palette.y = -4.1;
palette.topspalette.visible = false;
palette.bottomspalette.visible = false;
palette.adresspalette.visible = false;
palette.chainpalette.visible = false;
palette.shoespalette.visible = true;
palette.earringpalette.visible = false;
earstand.visible = false;
shoestand.visible = true;
bottomstand.visible = false;
dressstand.visible = false;
topstand.visible = false;
dressstand.visible = false;
chainstand.visible = false;
dressstand.gotoAndStop(16);
topstand.gotoAndStop(11);
bottomstand.gotoAndStop(10);
shoestand.gotoAndStop(6);
earstand.gotoAndStop(6);
chainstand.gotoAndStop(6);
break;
};
}
public function topsdrag(_arg1:MouseEvent):void{
var topcount:Number;
var topss:Class;
var tops:Object;
var puttops:Function;
var e1 = _arg1;
puttops = function (_arg1:MouseEvent){
removeChild(DisplayObject(tops));
if (tops.hitTestObject(doll)){
doll.tops.gotoAndStop((topcount + 1));
Globe.tops = doll.tops.currentFrame;
doll.dress.gotoAndStop(1);
Globe.dress = 0;
dressf = 0;
topsf = 1;
};
};
topcount = Globe.topstand;
topss = (getDefinitionByName(("top" + topcount)) as Class);
tops = new (topss);
addChild(DisplayObject(tops));
tops.x = mouseX;
tops.y = mouseY;
tops.startDrag(true);
tops.addEventListener(MouseEvent.MOUSE_UP, puttops);
}
public function link(_arg1:MouseEvent){
var _local2:URLRequest;
_local2 = new URLRequest("http://www.123peppy.com");
navigateToURL(_local2, "_blank");
}
}
}//package newfile_fla
Section 57
//OHJKKL_644 (newfile_fla.OHJKKL_644)
package newfile_fla {
import flash.events.*;
import flash.display.*;
import flash.text.*;
public dynamic class OHJKKL_644 extends MovieClip {
public var friendMail:TextField;
public var close:SimpleButton;
public function OHJKKL_644(){
addFrameScript(0, frame1);
}
public function hideAdd(_arg1:MouseEvent):void{
this.visible = false;
}
function frame1(){
this.visible = false;
close.addEventListener(MouseEvent.CLICK, hideAdd);
}
}
}//package newfile_fla
Section 58
//OKLJ_463 (newfile_fla.OKLJ_463)
package newfile_fla {
import flash.display.*;
public dynamic class OKLJ_463 extends MovieClip {
public var left:MovieClip;
public var right:MovieClip;
public var cruntstatus:MovieClip;
}
}//package newfile_fla
Section 59
//ONMJKL_635 (newfile_fla.ONMJKL_635)
package newfile_fla {
import flash.display.*;
import flash.text.*;
public dynamic class ONMJKL_635 extends MovieClip {
public var addition:SimpleButton;
public var close:SimpleButton;
public var submit:SimpleButton;
public var messageDetail:TextField;
public var friendName:TextField;
public var friend2:MovieClip;
public var friend4:MovieClip;
public var friend1:MovieClip;
public var friend3:MovieClip;
public var friendMail:TextField;
public var nameDetail:TextField;
public var mailDetail:TextField;
}
}//package newfile_fla
Section 60
//palette_106 (newfile_fla.palette_106)
package newfile_fla {
import flash.display.*;
public dynamic class palette_106 extends MovieClip {
public var earringpalette:MovieClip;
public var adresspalette:MovieClip;
public var shoespalette:MovieClip;
public var chainpalette:MovieClip;
public var bottomspalette:MovieClip;
public var topspalette:MovieClip;
}
}//package newfile_fla
Section 61
//peppydfgfsds_loader_19 (newfile_fla.peppydfgfsds_loader_19)
package newfile_fla {
import flash.display.*;
public dynamic class peppydfgfsds_loader_19 extends MovieClip {
public function peppydfgfsds_loader_19(){
addFrameScript(46, frame47);
}
function frame47(){
stop();
}
}
}//package newfile_fla
Section 62
//pl_64 (newfile_fla.pl_64)
package newfile_fla {
import flash.display.*;
public dynamic class pl_64 extends MovieClip {
public function pl_64(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package newfile_fla
Section 63
//shoespalette_134 (newfile_fla.shoespalette_134)
package newfile_fla {
import flash.display.*;
public dynamic class shoespalette_134 extends MovieClip {
public var s1:MovieClip;
public var s5:MovieClip;
public var s2:MovieClip;
public var s4:MovieClip;
public var s3:MovieClip;
}
}//package newfile_fla
Section 64
//shoest_600 (newfile_fla.shoest_600)
package newfile_fla {
import flash.display.*;
public dynamic class shoest_600 extends MovieClip {
public function shoest_600(){
addFrameScript(0, frame1, 6, frame7);
}
function frame7(){
gotoAndStop(2);
}
function frame1(){
stop();
}
}
}//package newfile_fla
Section 65
//Symbol1_295 (newfile_fla.Symbol1_295)
package newfile_fla {
import flash.display.*;
public dynamic class Symbol1_295 extends MovieClip {
public var b2:MovieClip;
public var b4:MovieClip;
public var b9:MovieClip;
public var b5:MovieClip;
public var b6:MovieClip;
public var b7:MovieClip;
public var b1:MovieClip;
public var b3:MovieClip;
public var b8:MovieClip;
}
}//package newfile_fla
Section 66
//Symbol6_632 (newfile_fla.Symbol6_632)
package newfile_fla {
import flash.display.*;
public dynamic class Symbol6_632 extends MovieClip {
public var nextbtn:MovieClip;
}
}//package newfile_fla
Section 67
//Symbol7_471 (newfile_fla.Symbol7_471)
package newfile_fla {
import flash.display.*;
public dynamic class Symbol7_471 extends MovieClip {
public function Symbol7_471(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package newfile_fla
Section 68
//t1_254 (newfile_fla.t1_254)
package newfile_fla {
import flash.display.*;
public dynamic class t1_254 extends MovieClip {
public var t1:SimpleButton;
}
}//package newfile_fla
Section 69
//t10_291 (newfile_fla.t10_291)
package newfile_fla {
import flash.display.*;
public dynamic class t10_291 extends MovieClip {
public var t10:SimpleButton;
}
}//package newfile_fla
Section 70
//t2_258 (newfile_fla.t2_258)
package newfile_fla {
import flash.display.*;
public dynamic class t2_258 extends MovieClip {
public var t2:SimpleButton;
}
}//package newfile_fla
Section 71
//t3_262 (newfile_fla.t3_262)
package newfile_fla {
import flash.display.*;
public dynamic class t3_262 extends MovieClip {
public var t3:SimpleButton;
}
}//package newfile_fla
Section 72
//t4_266 (newfile_fla.t4_266)
package newfile_fla {
import flash.display.*;
public dynamic class t4_266 extends MovieClip {
public var t4:SimpleButton;
}
}//package newfile_fla
Section 73
//t5_270 (newfile_fla.t5_270)
package newfile_fla {
import flash.display.*;
public dynamic class t5_270 extends MovieClip {
public var t5:SimpleButton;
}
}//package newfile_fla
Section 74
//t6_274 (newfile_fla.t6_274)
package newfile_fla {
import flash.display.*;
public dynamic class t6_274 extends MovieClip {
public var t6:SimpleButton;
}
}//package newfile_fla
Section 75
//t7_278 (newfile_fla.t7_278)
package newfile_fla {
import flash.display.*;
public dynamic class t7_278 extends MovieClip {
public var t7:SimpleButton;
}
}//package newfile_fla
Section 76
//t8_282 (newfile_fla.t8_282)
package newfile_fla {
import flash.display.*;
public dynamic class t8_282 extends MovieClip {
public var t8:SimpleButton;
}
}//package newfile_fla
Section 77
//t9_286 (newfile_fla.t9_286)
package newfile_fla {
import flash.display.*;
public dynamic class t9_286 extends MovieClip {
public var t9:SimpleButton;
}
}//package newfile_fla
Section 78
//tops_333 (newfile_fla.tops_333)
package newfile_fla {
import flash.display.*;
public dynamic class tops_333 extends MovieClip {
public var t2:MovieClip;
public var t3:MovieClip;
public var t7:MovieClip;
public var t1:MovieClip;
public var t9:MovieClip;
public var t5:MovieClip;
public var t8:MovieClip;
public var t4:MovieClip;
public var t6:MovieClip;
public var t10:MovieClip;
public function tops_333(){
addFrameScript(10, frame11);
}
function frame11(){
gotoAndStop(2);
}
}
}//package newfile_fla
Section 79
//topspalette_253 (newfile_fla.topspalette_253)
package newfile_fla {
import flash.display.*;
public dynamic class topspalette_253 extends MovieClip {
public var t2:MovieClip;
public var t3:MovieClip;
public var t7:MovieClip;
public var t1:MovieClip;
public var t9:MovieClip;
public var t5:MovieClip;
public var t8:MovieClip;
public var t4:MovieClip;
public var t6:MovieClip;
public var t10:MovieClip;
}
}//package newfile_fla
Section 80
//topst_546 (newfile_fla.topst_546)
package newfile_fla {
import flash.display.*;
public dynamic class topst_546 extends MovieClip {
public function topst_546(){
addFrameScript(0, frame1, 11, frame12);
}
function frame12(){
gotoAndStop(2);
}
function frame1(){
stop();
}
}
}//package newfile_fla
Section 81
//Tween3_464 (newfile_fla.Tween3_464)
package newfile_fla {
import flash.display.*;
public dynamic class Tween3_464 extends MovieClip {
public function Tween3_464(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package newfile_fla
Section 82
//udryuu_84 (newfile_fla.udryuu_84)
package newfile_fla {
import flash.display.*;
public dynamic class udryuu_84 extends MovieClip {
public function udryuu_84(){
addFrameScript(99, frame100);
}
function frame100(){
}
}
}//package newfile_fla
Section 83
//backscore (backscore)
package {
import flash.media.*;
public dynamic class backscore extends Sound {
}
}//package
Section 84
//bottom1 (bottom1)
package {
import flash.display.*;
public dynamic class bottom1 extends MovieClip {
}
}//package
Section 85
//bottom10 (bottom10)
package {
import flash.display.*;
public dynamic class bottom10 extends MovieClip {
}
}//package
Section 86
//bottom11 (bottom11)
package {
import flash.display.*;
public dynamic class bottom11 extends MovieClip {
}
}//package
Section 87
//bottom2 (bottom2)
package {
import flash.display.*;
public dynamic class bottom2 extends MovieClip {
}
}//package
Section 88
//bottom3 (bottom3)
package {
import flash.display.*;
public dynamic class bottom3 extends MovieClip {
}
}//package
Section 89
//bottom4 (bottom4)
package {
import flash.display.*;
public dynamic class bottom4 extends MovieClip {
}
}//package
Section 90
//bottom5 (bottom5)
package {
import flash.display.*;
public dynamic class bottom5 extends MovieClip {
}
}//package
Section 91
//bottom6 (bottom6)
package {
import flash.display.*;
public dynamic class bottom6 extends MovieClip {
}
}//package
Section 92
//bottom7 (bottom7)
package {
import flash.display.*;
public dynamic class bottom7 extends MovieClip {
}
}//package
Section 93
//bottom8 (bottom8)
package {
import flash.display.*;
public dynamic class bottom8 extends MovieClip {
}
}//package
Section 94
//bottom9 (bottom9)
package {
import flash.display.*;
public dynamic class bottom9 extends MovieClip {
}
}//package
Section 95
//chain1 (chain1)
package {
import flash.display.*;
public dynamic class chain1 extends MovieClip {
}
}//package
Section 96
//chain2 (chain2)
package {
import flash.display.*;
public dynamic class chain2 extends MovieClip {
}
}//package
Section 97
//chain3 (chain3)
package {
import flash.display.*;
public dynamic class chain3 extends MovieClip {
}
}//package
Section 98
//chain4 (chain4)
package {
import flash.display.*;
public dynamic class chain4 extends MovieClip {
}
}//package
Section 99
//chain5 (chain5)
package {
import flash.display.*;
public dynamic class chain5 extends MovieClip {
}
}//package
Section 100
//dress1 (dress1)
package {
import flash.display.*;
public dynamic class dress1 extends MovieClip {
}
}//package
Section 101
//dress10 (dress10)
package {
import flash.display.*;
public dynamic class dress10 extends MovieClip {
}
}//package
Section 102
//dress11 (dress11)
package {
import flash.display.*;
public dynamic class dress11 extends MovieClip {
}
}//package
Section 103
//dress12 (dress12)
package {
import flash.display.*;
public dynamic class dress12 extends MovieClip {
}
}//package
Section 104
//dress13 (dress13)
package {
import flash.display.*;
public dynamic class dress13 extends MovieClip {
}
}//package
Section 105
//dress14 (dress14)
package {
import flash.display.*;
public dynamic class dress14 extends MovieClip {
}
}//package
Section 106
//dress15 (dress15)
package {
import flash.display.*;
public dynamic class dress15 extends MovieClip {
}
}//package
Section 107
//dress2 (dress2)
package {
import flash.display.*;
public dynamic class dress2 extends MovieClip {
}
}//package
Section 108
//dress3 (dress3)
package {
import flash.display.*;
public dynamic class dress3 extends MovieClip {
}
}//package
Section 109
//dress4 (dress4)
package {
import flash.display.*;
public dynamic class dress4 extends MovieClip {
}
}//package
Section 110
//dress5 (dress5)
package {
import flash.display.*;
public dynamic class dress5 extends MovieClip {
}
}//package
Section 111
//dress6 (dress6)
package {
import flash.display.*;
public dynamic class dress6 extends MovieClip {
}
}//package
Section 112
//dress7 (dress7)
package {
import flash.display.*;
public dynamic class dress7 extends MovieClip {
}
}//package
Section 113
//dress8 (dress8)
package {
import flash.display.*;
public dynamic class dress8 extends MovieClip {
}
}//package
Section 114
//dress9 (dress9)
package {
import flash.display.*;
public dynamic class dress9 extends MovieClip {
}
}//package
Section 115
//ear1 (ear1)
package {
import flash.display.*;
public dynamic class ear1 extends MovieClip {
}
}//package
Section 116
//ear2 (ear2)
package {
import flash.display.*;
public dynamic class ear2 extends MovieClip {
}
}//package
Section 117
//ear3 (ear3)
package {
import flash.display.*;
public dynamic class ear3 extends MovieClip {
}
}//package
Section 118
//ear4 (ear4)
package {
import flash.display.*;
public dynamic class ear4 extends MovieClip {
}
}//package
Section 119
//ear5 (ear5)
package {
import flash.display.*;
public dynamic class ear5 extends MovieClip {
}
}//package
Section 120
//Globe (Globe)
package {
public class Globe {
public static var earstand:Number = 0;
public static var chain:Number = 0;
public static var life:Number = 0;
public static var tops:Number = 0;
public static var earring:Number = 0;
public static var shoes:Number = 0;
public static var bottomstand:Number = 0;
public static var shoestand:Number = 0;
public static var temp:Number;
public static var playback:Boolean = false;
public static var topstand:Number = 0;
public static var tex:String = "";
public static var i:Number;
public static var bags:Number = 0;
public static var bottoms:Number = 0;
public static var hair:Number = 0;
public static var chainstand:Number = 0;
public static var dress:Number = 0;
public static var dressstand:Number = 0;
}
}//package
Section 121
//shoes1 (shoes1)
package {
import flash.display.*;
public dynamic class shoes1 extends MovieClip {
}
}//package
Section 122
//shoes2 (shoes2)
package {
import flash.display.*;
public dynamic class shoes2 extends MovieClip {
}
}//package
Section 123
//shoes3 (shoes3)
package {
import flash.display.*;
public dynamic class shoes3 extends MovieClip {
}
}//package
Section 124
//shoes4 (shoes4)
package {
import flash.display.*;
public dynamic class shoes4 extends MovieClip {
}
}//package
Section 125
//shoes5 (shoes5)
package {
import flash.display.*;
public dynamic class shoes5 extends MovieClip {
}
}//package
Section 126
//top1 (top1)
package {
import flash.display.*;
public dynamic class top1 extends MovieClip {
}
}//package
Section 127
//top10 (top10)
package {
import flash.display.*;
public dynamic class top10 extends MovieClip {
}
}//package
Section 128
//top2 (top2)
package {
import flash.display.*;
public dynamic class top2 extends MovieClip {
}
}//package
Section 129
//top3 (top3)
package {
import flash.display.*;
public dynamic class top3 extends MovieClip {
}
}//package
Section 130
//top4 (top4)
package {
import flash.display.*;
public dynamic class top4 extends MovieClip {
}
}//package
Section 131
//top5 (top5)
package {
import flash.display.*;
public dynamic class top5 extends MovieClip {
}
}//package
Section 132
//top6 (top6)
package {
import flash.display.*;
public dynamic class top6 extends MovieClip {
}
}//package
Section 133
//top7 (top7)
package {
import flash.display.*;
public dynamic class top7 extends MovieClip {
}
}//package
Section 134
//top8 (top8)
package {
import flash.display.*;
public dynamic class top8 extends MovieClip {
}
}//package
Section 135
//top9 (top9)
package {
import flash.display.*;
public dynamic class top9 extends MovieClip {
}
}//package