Section 1
//bagspalette_164 (amerie_fla.bagspalette_164)
package amerie_fla {
import flash.display.*;
public dynamic class bagspalette_164 extends MovieClip {
public var b2:MovieClip;
public var b4:MovieClip;
public var b5:MovieClip;
public var b1:MovieClip;
public var b3:MovieClip;
public function bagspalette_164(){
super();
}
}
}//package amerie_fla
Section 2
//bottoms_201 (amerie_fla.bottoms_201)
package amerie_fla {
import flash.display.*;
public dynamic class bottoms_201 extends MovieClip {
public function bottoms_201(){
super();
addFrameScript(0, frame1, 12, frame13);
}
function frame1(){
stop();
}
function frame13(){
gotoAndStop(2);
}
}
}//package amerie_fla
Section 3
//bottomspalette_110 (amerie_fla.bottomspalette_110)
package amerie_fla {
import flash.display.*;
public dynamic class bottomspalette_110 extends MovieClip {
public var b10: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;
public var b11:MovieClip;
public function bottomspalette_110(){
super();
}
}
}//package amerie_fla
Section 4
//chainpalette_225 (amerie_fla.chainpalette_225)
package amerie_fla {
import flash.display.*;
public dynamic class chainpalette_225 extends MovieClip {
public var c1:MovieClip;
public var c3:MovieClip;
public var c4:MovieClip;
public var c5:MovieClip;
public var c2:MovieClip;
public function chainpalette_225(){
super();
}
}
}//package amerie_fla
Section 5
//chians_203 (amerie_fla.chians_203)
package amerie_fla {
import flash.display.*;
public dynamic class chians_203 extends MovieClip {
public function chians_203(){
super();
addFrameScript(0, frame1, 6, frame7);
}
function frame7(){
gotoAndStop(2);
}
function frame1(){
stop();
}
}
}//package amerie_fla
Section 6
//doll_175 (amerie_fla.doll_175)
package amerie_fla {
import flash.display.*;
public dynamic class doll_175 extends MovieClip {
public var dress:MovieClip;
public var bags:MovieClip;
public var glass:MovieClip;
public var earring:MovieClip;
public var bottoms:MovieClip;
public var tops:MovieClip;
public var chain:MovieClip;
public var shoes:MovieClip;
public var hair:MovieClip;
public function doll_175(){
super();
}
}
}//package amerie_fla
Section 7
//dress_200 (amerie_fla.dress_200)
package amerie_fla {
import flash.display.*;
public dynamic class dress_200 extends MovieClip {
public function dress_200(){
super();
addFrameScript(0, frame1, 15, frame16);
}
function frame16(){
gotoAndStop(2);
}
function frame1(){
stop();
}
}
}//package amerie_fla
Section 8
//dresspalette_85 (amerie_fla.dresspalette_85)
package amerie_fla {
import flash.display.*;
public dynamic class dresspalette_85 extends MovieClip {
public var d4:MovieClip;
public var d8:MovieClip;
public var d2:MovieClip;
public var d5:MovieClip;
public var d6:MovieClip;
public var d7:MovieClip;
public var d9:MovieClip;
public var d3:MovieClip;
public var d10:MovieClip;
public var d11:MovieClip;
public var d14:MovieClip;
public var d13:MovieClip;
public var d12:MovieClip;
public var d1:MovieClip;
public function dresspalette_85(){
super();
}
}
}//package amerie_fla
Section 9
//earringpalette_226 (amerie_fla.earringpalette_226)
package amerie_fla {
import flash.display.*;
public dynamic class earringpalette_226 extends MovieClip {
public var e2:MovieClip;
public var e5:MovieClip;
public var e3:MovieClip;
public var e4:MovieClip;
public var e1:MovieClip;
public function earringpalette_226(){
super();
}
}
}//package amerie_fla
Section 10
//earrings_218 (amerie_fla.earrings_218)
package amerie_fla {
import flash.display.*;
public dynamic class earrings_218 extends MovieClip {
public function earrings_218(){
super();
addFrameScript(0, frame1, 6, frame7);
}
function frame7(){
gotoAndStop(2);
}
function frame1(){
stop();
}
}
}//package amerie_fla
Section 11
//glasspalette_154 (amerie_fla.glasspalette_154)
package amerie_fla {
import flash.display.*;
public dynamic class glasspalette_154 extends MovieClip {
public var g3:MovieClip;
public var g4:MovieClip;
public var g1:MovieClip;
public var g5:MovieClip;
public var g2:MovieClip;
public function glasspalette_154(){
super();
}
}
}//package amerie_fla
Section 12
//hairpalette_224 (amerie_fla.hairpalette_224)
package amerie_fla {
import flash.display.*;
public dynamic class hairpalette_224 extends MovieClip {
public var h1:MovieClip;
public var h2:MovieClip;
public var h4:MovieClip;
public var h5:MovieClip;
public var h6:MovieClip;
public var h3:MovieClip;
public function hairpalette_224(){
super();
}
}
}//package amerie_fla
Section 13
//hairs_210 (amerie_fla.hairs_210)
package amerie_fla {
import flash.display.*;
public dynamic class hairs_210 extends MovieClip {
public function hairs_210(){
super();
addFrameScript(0, frame1, 6, frame7);
}
function frame7(){
gotoAndStop(1);
}
function frame1(){
stop();
}
}
}//package amerie_fla
Section 14
//KLJLJ_146 (amerie_fla.KLJLJ_146)
package amerie_fla {
import flash.display.*;
public dynamic class KLJLJ_146 extends MovieClip {
public function KLJLJ_146(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package amerie_fla
Section 15
//KLJLJ_147 (amerie_fla.KLJLJ_147)
package amerie_fla {
import flash.display.*;
public dynamic class KLJLJ_147 extends MovieClip {
public function KLJLJ_147(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package amerie_fla
Section 16
//KLJLJ_21 (amerie_fla.KLJLJ_21)
package amerie_fla {
import flash.display.*;
public dynamic class KLJLJ_21 extends MovieClip {
public function KLJLJ_21(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package amerie_fla
Section 17
//KLJLJ_269 (amerie_fla.KLJLJ_269)
package amerie_fla {
import flash.display.*;
public dynamic class KLJLJ_269 extends MovieClip {
public function KLJLJ_269(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package amerie_fla
Section 18
//KLJLJ_270 (amerie_fla.KLJLJ_270)
package amerie_fla {
import flash.display.*;
public dynamic class KLJLJ_270 extends MovieClip {
public function KLJLJ_270(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package amerie_fla
Section 19
//KLJLJ_271 (amerie_fla.KLJLJ_271)
package amerie_fla {
import flash.display.*;
public dynamic class KLJLJ_271 extends MovieClip {
public function KLJLJ_271(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package amerie_fla
Section 20
//MainTimeline (amerie_fla.MainTimeline)
package amerie_fla {
import gs.*;
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.filters.*;
import gs.easing.*;
import fl.transitions.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.ui.*;
import flash.errors.*;
import flash.net.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.external.*;
import flash.printing.*;
import flash.xml.*;
import fl.transitions.easing.*;
public dynamic class MainTimeline extends MovieClip {
public var girlDoll:String;
public var scrolling:Boolean;
public var b0:Number;
public var s0:Number;
public var prev:Object;
public var t2:TextField;
public var t3:Tween;
public var t7:Tween;
public var t1:TextField;
public var t9:Tween;
public var t5:Tween;
public var t6:Tween;
public var d0:Number;
public var t4:Tween;
public var hairpalette:MovieClip;
public var C0:Number;
public var t8:Tween;
public var topsf:Number;
public var preloader:MovieClip;
public var palette:MovieClip;
public var curs:Number;
public var playmore:MovieClip;
public var dolls:MovieClip;
public var nextbtn:MovieClip;
public var shoespalette:MovieClip;
public var to:Number;
public var chainpalette:MovieClip;
public var percentage:Number;
public var contestMenu:ContextMenu;
public var popup:MovieClip;
public var resetbtn:MovieClip;
public var bagspalette:MovieClip;
public var logo_mc:SimpleButton;
public var bounds:Rectangle;
public var myMask:MovieClip;
public var g0:Number;
public var eo:Number;
public var girldollArray:Array;
public var BitsLoaded:TextField;
public var queCount:uint;
public var h0:Number;
public var que:Array;
public var mailArray:Array;
public var obj:Object;
public var sndon:SimpleButton;
public var bullet:backscore;
public var dressf:Number;
public var scrollMC:MovieClip;
public var earringpalette:MovieClip;
public var oldY:Number;
public var doll:MovieClip;
public var sndoff:SimpleButton;
public var glasspalette:MovieClip;
public var t12:Tween;
public var t14:Tween;
public var t15:Tween;
public var t16:Tween;
public var t10:Tween;
public var t11:Tween;
public var email:MovieClip;
public var nex:MovieClip;
public var bots:Number;
public var bulletChannel:SoundChannel;
public var contextmenuItem:ContextMenuItem;
public var t13:Tween;
public var CONTENT_HEIGHT:Number;
public var temp:Number;
public var MASK_HEIGHT:Number;
public var q0:Number;
public var pl:MovieClip;
public var ball:MovieClip;
public function MainTimeline(){
super();
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5);
}
public function hideAdd1(event:MouseEvent):void{
popup.friend1.visible = false;
que.push("0");
que.sort();
popup.addition.mouseEnabled = true;
}
public function hideAdd2(event:MouseEvent):void{
popup.friend2.visible = false;
que.push("1");
que.sort();
popup.addition.mouseEnabled = true;
}
public function hideAdd3(event:MouseEvent):void{
popup.friend3.visible = false;
que.push("2");
que.sort();
popup.addition.mouseEnabled = true;
}
public function result(r:Event):void{
if (t1.text == ""){
nextbtn.visible = false;
} else {
nextbtn.visible = true;
};
}
public function hideAdd4(event:MouseEvent):void{
popup.friend4.visible = false;
que.push("3");
que.sort();
popup.addition.mouseEnabled = true;
}
public function sets(e1:Event){
if (dressf == 1){
nextbtn.visible = true;
} else {
if ((((topsf == 1)) && ((bots == 1)))){
nextbtn.visible = true;
} else {
nextbtn.visible = false;
};
};
}
function frame4(){
stop();
nextbtn.visible = false;
t1.text = "";
t1.restrict = "A-Z0-9";
nextbtn.gotoAndStop(Globe.temp);
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 = 778.4;
sndoff.y = 578.8;
sndon.x = 775;
sndon.y = 577.5;
} 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 frame5(){
stop();
playmore.visible = false;
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.hair.gotoAndStop(Number(girldollArray[5]));
dolls.earring.gotoAndStop(Number(girldollArray[6]));
} 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.hair.gotoAndStop(Number(girldollArray[7]));
dolls.earring.gotoAndStop(Number(girldollArray[8]));
} 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.hair.gotoAndStop(Number(girldollArray[6]));
dolls.earring.gotoAndStop(Number(girldollArray[7]));
} 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.hair.gotoAndStop(Number(girldollArray[6]));
dolls.earring.gotoAndStop(Number(girldollArray[7]));
} 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.hair.gotoAndStop(Number(girldollArray[6]));
dolls.earring.gotoAndStop(Number(girldollArray[7]));
};
};
};
};
};
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.dress.gotoAndStop(Globe.dress);
dolls.tops.gotoAndStop(Globe.tops);
dolls.bottoms.gotoAndStop(Globe.bottoms);
dolls.hair.gotoAndStop(Globe.hair);
dolls.earring.gotoAndStop(Globe.earring);
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);
};
};
playmore.buttonMode = true;
nex.buttonMode = true;
email.gotoAndStop(Globe.temp);
nex.gotoAndStop(Globe.temp);
playmore.gotoAndStop(Globe.temp);
if (loaderInfo.url.match("123peppy")){
logo_mc.visible = false;
sndoff.x = 778.4;
sndoff.y = 578.8;
sndon.x = 775;
sndon.y = 577.5;
playmore.visible = false;
} else {
logo_mc.addEventListener(MouseEvent.CLICK, link5);
playmore.visible = true;
};
playmore.addEventListener(MouseEvent.CLICK, mor);
que = new Array("0", "1", "2", "3");
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.hair.currentFrame.toString()) + dolls.earring.currentFrame.toString());
trace(girlDoll);
popup.friend1.close.addEventListener(MouseEvent.CLICK, hideAdd1);
popup.friend2.close.addEventListener(MouseEvent.CLICK, hideAdd2);
popup.friend3.close.addEventListener(MouseEvent.CLICK, hideAdd3);
popup.friend4.close.addEventListener(MouseEvent.CLICK, hideAdd4);
playmore.addEventListener(MouseEvent.ROLL_OVER, rollover5);
playmore.addEventListener(MouseEvent.ROLL_OUT, rollout5);
nex.addEventListener(MouseEvent.ROLL_OVER, rollover5);
nex.addEventListener(MouseEvent.ROLL_OUT, rollout5);
email.addEventListener(MouseEvent.ROLL_OVER, rollover5);
email.addEventListener(MouseEvent.ROLL_OUT, rollout5);
}
function frame2(){
stop();
Globe.playback = true;
if (bulletChannel){
bulletChannel.stop();
};
pl.buttonMode = true;
pl.addEventListener(MouseEvent.CLICK, plays);
switch (this.loaderInfo.parameters.lang){
case "fr":
Globe.temp = 6;
pl.gotoAndStop(Globe.temp);
break;
case "de":
Globe.temp = 5;
pl.gotoAndStop(Globe.temp);
break;
case "it":
Globe.temp = 4;
pl.gotoAndStop(Globe.temp);
break;
case "pl":
Globe.temp = 10;
pl.gotoAndStop(Globe.temp);
break;
case "ru":
Globe.temp = 3;
pl.gotoAndStop(Globe.temp);
break;
case "tr":
Globe.temp = 7;
pl.gotoAndStop(Globe.temp);
break;
case "sv":
Globe.temp = 8;
pl.gotoAndStop(Globe.temp);
break;
case "pt-br":
Globe.temp = 11;
pl.gotoAndStop(Globe.temp);
break;
case "es":
Globe.temp = 9;
pl.gotoAndStop(Globe.temp);
break;
case "nl":
Globe.temp = 2;
pl.gotoAndStop(Globe.temp);
break;
default:
Globe.temp = 1;
pl.gotoAndStop(Globe.temp);
break;
};
pl.addEventListener(MouseEvent.ROLL_OVER, rollover);
pl.addEventListener(MouseEvent.ROLL_OUT, rollout);
}
public function topsclick(tt:MouseEvent):void{
var t1:*;
var t:Number;
t1 = tt.currentTarget;
t = parseInt(t1.name.substr(1));
doll.tops.gotoAndStop((t + 1));
Globe.tops = doll.tops.currentFrame;
doll.dress.gotoAndStop(1);
Globe.dress = 0;
dressf = 0;
topsf = 1;
}
public function rollout5(r2:MouseEvent):void{
r2.currentTarget.scaleX = 1.1;
r2.currentTarget.scaleY = 1.1;
}
public function res(r1: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.hair.gotoAndStop(1);
dressf = 0;
topsf = 0;
bots = 0;
Globe.dress = 0;
Globe.tops = 0;
Globe.bottoms = 0;
Globe.chain = 0;
Globe.hair = 0;
Globe.shoes = 0;
Globe.earring = 0;
}
function frame3(){
MochiBot.track(this, "c71f4a6f");
stop();
nextbtn.visible = false;
CONTENT_HEIGHT = 2600;
MASK_HEIGHT = 400;
palette.x = -0.4;
scrollMC.x = 25.9;
resetbtn.gotoAndStop(Globe.temp);
nextbtn.gotoAndStop(Globe.temp);
nextbtn.visible = false;
scrollMC.mouseEnabled = true;
dressf = 0;
topsf = 0;
bots = 0;
doll.dress.gotoAndStop(1);
doll.shoes.gotoAndStop(1);
doll.chain.gotoAndStop(1);
doll.tops.gotoAndStop(1);
doll.hair.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);
resetbtn.buttonMode = true;
nextbtn.buttonMode = true;
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);
palette.topspalette.getChildAt(to).addEventListener(MouseEvent.MOUSE_DOWN, topsclick);
to++;
};
q0 = 0;
while (q0 <= (palette.dresspalette.numChildren - 1)) {
palette.dresspalette.getChildAt(q0).addEventListener(MouseEvent.ROLL_OVER, enabl);
palette.dresspalette.getChildAt(q0).addEventListener(MouseEvent.CLICK, dressclick);
palette.dresspalette.getChildAt(q0).addEventListener(MouseEvent.MOUSE_DOWN, dressclick);
q0++;
};
C0 = 0;
while (C0 <= (chainpalette.numChildren - 1)) {
chainpalette.getChildAt(C0).addEventListener(MouseEvent.ROLL_OVER, enabl);
chainpalette.getChildAt(C0).addEventListener(MouseEvent.CLICK, chainclick);
chainpalette.getChildAt(C0).addEventListener(MouseEvent.MOUSE_DOWN, chainclick);
C0++;
};
eo = 0;
while (eo <= (earringpalette.numChildren - 1)) {
earringpalette.getChildAt(eo).addEventListener(MouseEvent.ROLL_OVER, enabl);
earringpalette.getChildAt(eo).addEventListener(MouseEvent.CLICK, earsclick);
earringpalette.getChildAt(eo).addEventListener(MouseEvent.MOUSE_DOWN, earsclick);
eo++;
};
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);
palette.bottomspalette.getChildAt(d0).addEventListener(MouseEvent.MOUSE_DOWN, bottomsclick);
d0++;
};
s0 = 0;
while (s0 <= (shoespalette.numChildren - 1)) {
shoespalette.getChildAt(s0).addEventListener(MouseEvent.ROLL_OVER, enabl);
shoespalette.getChildAt(s0).addEventListener(MouseEvent.CLICK, shoesclick);
shoespalette.getChildAt(s0).addEventListener(MouseEvent.MOUSE_DOWN, shoesclick);
s0++;
};
h0 = 0;
while (h0 <= (hairpalette.numChildren - 1)) {
hairpalette.getChildAt(h0).addEventListener(MouseEvent.ROLL_OVER, enabl);
hairpalette.getChildAt(h0).addEventListener(MouseEvent.CLICK, hairclick);
hairpalette.getChildAt(h0).addEventListener(MouseEvent.MOUSE_DOWN, hairclick);
h0++;
};
g0 = 0;
while (g0 <= (glasspalette.numChildren - 1)) {
glasspalette.getChildAt(g0).addEventListener(MouseEvent.ROLL_OVER, enabl);
glasspalette.getChildAt(g0).addEventListener(MouseEvent.CLICK, glassclick);
glasspalette.getChildAt(g0).addEventListener(MouseEvent.MOUSE_DOWN, glassclick);
g0++;
};
b0 = 0;
while (b0 <= (bagspalette.numChildren - 1)) {
bagspalette.getChildAt(b0).addEventListener(MouseEvent.ROLL_OVER, enabl);
bagspalette.getChildAt(b0).addEventListener(MouseEvent.CLICK, bagsclick);
bagspalette.getChildAt(b0).addEventListener(MouseEvent.MOUSE_DOWN, bagsclick);
b0++;
};
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 = 778.4;
sndoff.y = 578.8;
sndon.x = 775;
sndon.y = 577.5;
} else {
logo_mc.addEventListener(MouseEvent.CLICK, link);
};
TweenLite.to(palette, 100, {x:-1740.2});
oldY = palette.x;
scrollMC.x = 23.3;
scrollMC.buttonMode = true;
palette.mask = myMask;
bounds = new Rectangle(scrollMC.x, scrollMC.y, 330, 0);
scrolling = false;
scrollMC.addEventListener(MouseEvent.MOUSE_DOWN, startScroll);
stage.addEventListener(MouseEvent.MOUSE_UP, stopScroll);
addEventListener(Event.ENTER_FRAME, enterHandler);
}
public function plas1(p1:MouseEvent){
gotoAndStop(2);
}
public function rollover(r1:MouseEvent):void{
r1.currentTarget.scaleX = 1.1;
r1.currentTarget.scaleY = 1.1;
}
public function showMailBox(event:MouseEvent):void{
email.mouseEnabled = false;
popup.friend1.visible = false;
popup.friend2.visible = false;
popup.friend3.visible = false;
popup.friend4.visible = false;
TweenLite.to(popup, 1, {y:150, ease:Bounce.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(tt:MouseEvent):void{
var t1:*;
var t:Number;
t1 = tt.currentTarget;
t = parseInt(t1.name.substr(1));
doll.bottoms.gotoAndStop((t + 1));
Globe.bottoms = doll.bottoms.currentFrame;
doll.dress.gotoAndStop(1);
Globe.dress = 0;
dressf = 0;
bots = 1;
}
public function hairclick(tt:MouseEvent):void{
var t1:*;
var t:Number;
t1 = tt.currentTarget;
t = parseInt(t1.name.substr(1));
doll.hair.gotoAndStop(t);
Globe.hair = doll.hair.currentFrame;
}
public function hideMailBox(event:MouseEvent):void{
var event = event;
email.mouseEnabled = true;
que[0] = "0";
que[1] = "1";
que[2] = "2";
que[3] = "3";
popup.addition.mouseEnabled = true;
TweenLite.to(popup, 1, {y:(-390 - popup.height), ease:Back.easeOut});
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 bagsclick(tt:MouseEvent):void{
var t1:*;
var t:Number;
t1 = tt.currentTarget;
t = parseInt(t1.name.substr(1));
doll.bags.gotoAndStop((t + 1));
Globe.bags = doll.bags.currentFrame;
}
public function showExtra(event:MouseEvent):void{
if (queCount < 4){
queCount++;
};
switch (que[0]){
case que[0]:
mailArray[que[0]].visible = true;
que.splice(0, 1);
que.sort();
if (que.length == 0){
popup.addition.mouseEnabled = false;
};
break;
};
}
public function mor(mo1:MouseEvent):void{
var req12:URLRequest;
req12 = new URLRequest("http://www.123peppy.com");
navigateToURL(req12, "_blank");
}
public function sndop(e1:MouseEvent):void{
bulletChannel.stop();
sndon.visible = true;
sndoff.visible = false;
}
public function enabl(q1:MouseEvent):void{
q1.currentTarget.buttonMode = true;
}
public function callMail(event:MouseEvent):void{
var request:URLRequest;
var variables:URLVariables;
var event = event;
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 = "Amerie";
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;
switch (this.loaderInfo.parameters.lang){
case "fr":
variables.path = "http://www.123peppy.com/fr/play/jeu-de-habillent-de-amerie";
break;
case "de":
variables.path = "http://www.123peppy.com/de/play/amerie-kleiden-spiel";
break;
case "it":
variables.path = "http://www.123peppy.com/it/play/amerie-gioco-di-vestire";
break;
case "pl":
variables.path = "http://www.123peppy.com/pl/play/gra-ubieranki-amerie";
break;
case "ru":
variables.path = "http://www.123peppy.com/ru/play/amerie-игры-одень";
break;
case "tr":
variables.path = "http://www.123peppy.com/tr/play/amerie-giydirme-oyunlar";
break;
case "sv":
variables.path = "http://www.123peppy.com/sv/play/amerie-klä-upp-spel";
break;
case "pt-br":
variables.path = "http://www.123peppy.com/pt-br/play/amerie-jogo-de-vestir";
break;
case "es":
variables.path = "http://www.123peppy.com/es/play/amerie-juegos-de-vestir";
break;
case "nl":
variables.path = "http://www.123peppy.com/nl/play/amerie-kleding-spelletjes";
break;
default:
variables.path = "http://www.123peppy.com/play/amerie-dress-game";
break;
};
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, 1, {y:(-390 - popup.height), ease:Back.easeOut});
var _local3 = popup;
with (_local3) {
friend1.visible = (friend2.visible = (friend3.visible = (friend4.visible = false)));
};
queCount = 0;
}
public function plas(p1:MouseEvent){
gotoAndStop(2);
}
public function BeeMoving(event:Event):void{
var dx:Number;
var dy:Number;
var nLoadedBytes:Number;
var nTotalBytes:Number;
dx = (mouseX - ball.x);
dy = (mouseY - ball.y);
ball.x = (ball.x + (dx * 0.2));
ball.y = (ball.y + (dy * 0.2));
nLoadedBytes = loaderInfo.bytesLoaded;
nTotalBytes = loaderInfo.bytesTotal;
percentage = Math.round(((nLoadedBytes / nTotalBytes) * 100));
BitsLoaded.text = (((Math.round((nLoadedBytes / 0x0400)) + "kBs /") + Math.round((nTotalBytes / 0x0400))) + "kBs");
if (nLoadedBytes == nTotalBytes){
stage.removeEventListener(Event.ENTER_FRAME, BeeMoving);
if (this.loaderInfo.parameters.bg){
gotoAndStop(5);
} else {
gotoAndStop(2);
};
};
}
public function nextbtns(n1:MouseEvent):void{
Globe.tex = t1.text;
trace(Globe.tex);
nextFrame();
stage.removeEventListener(Event.ENTER_FRAME, result);
}
public function Site(event:Event):void{
var flashmo_link:URLRequest;
flashmo_link = new URLRequest("http://www.123peppy.com");
navigateToURL(flashmo_link, "_blank");
}
public function chainclick(tt:MouseEvent):void{
var t1:*;
var t:Number;
t1 = tt.currentTarget;
t = parseInt(t1.name.substr(1));
doll.chain.gotoAndStop((t + 1));
Globe.chain = doll.chain.currentFrame;
}
public function link1(l2:MouseEvent){
var req:URLRequest;
req = new URLRequest("http://www.123peppy.com");
navigateToURL(req, "_blank");
}
public function link5(l2:MouseEvent){
var req:URLRequest;
req = new URLRequest("http://www.123peppy.com");
navigateToURL(req, "_blank");
}
public function rollover5(r1:MouseEvent):void{
r1.currentTarget.scaleX = 1;
r1.currentTarget.scaleY = 1;
}
public function stopScroll(e:Event):void{
trace("trsd");
scrolling = false;
TweenLite.to(palette, 100, {x:-1740.2});
scrollMC.stopDrag();
}
public function sndst(e:MouseEvent):void{
bulletChannel = bullet.play(0, int.MAX_VALUE);
sndoff.visible = true;
sndon.visible = false;
}
public function enterHandler(e:Event):void{
var distance:Number;
var percentage:Number;
var targetY:Number;
if (scrolling == true){
distance = Math.round((scrollMC.x - bounds.x));
percentage = (distance / MASK_HEIGHT);
oldY = palette.y;
targetY = (-(((CONTENT_HEIGHT - MASK_HEIGHT) * percentage)) + myMask.x);
if (Math.abs((oldY - targetY)) > 5){
TweenMax.to(palette, 0.3, {x:targetY, blurFilter:{blurX:0, blurY:0}});
};
};
}
public function shoesclick(tt:MouseEvent):void{
var t1:*;
var t:Number;
t1 = tt.currentTarget;
t = parseInt(t1.name.substr(1));
doll.shoes.gotoAndStop((t + 1));
Globe.shoes = doll.shoes.currentFrame;
}
public function rollout(r2:MouseEvent):void{
r2.currentTarget.scaleX = 1;
r2.currentTarget.scaleY = 1;
}
public function glassclick(tt:MouseEvent):void{
var t1:*;
var t:Number;
t1 = tt.currentTarget;
t = parseInt(t1.name.substr(1));
doll.glass.gotoAndStop((t + 1));
Globe.glass = doll.glass.currentFrame;
}
public function dressclick(dd:MouseEvent):void{
var d1:*;
var d:Number;
d1 = dd.currentTarget;
d = parseInt(d1.name.substr(1));
doll.dress.gotoAndStop((d + 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;
}
public function nx(n1: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;
Globe.hair = doll.hair.currentFrame;
nextFrame();
}
public function plays(p1:MouseEvent):void{
nextFrame();
}
public function startScroll(e:Event):void{
trace("tr");
scrolling = true;
scrollMC.startDrag(false, bounds);
}
public function earsclick(tt:MouseEvent):void{
var t1:*;
var t:Number;
t1 = tt.currentTarget;
t = parseInt(t1.name.substr(1));
doll.earring.gotoAndStop((t + 1));
Globe.earring = doll.earring.currentFrame;
}
public function link(l2:MouseEvent){
var req:URLRequest;
req = new URLRequest("http://www.123peppy.com");
navigateToURL(req, "_blank");
}
}
}//package amerie_fla
Section 21
//N_64 (amerie_fla.N_64)
package amerie_fla {
import flash.display.*;
public dynamic class N_64 extends MovieClip {
public var dresspalette:MovieClip;
public var bottomspalette:MovieClip;
public var topspalette:MovieClip;
public function N_64(){
super();
}
}
}//package amerie_fla
Section 22
//shoes_193 (amerie_fla.shoes_193)
package amerie_fla {
import flash.display.*;
public dynamic class shoes_193 extends MovieClip {
public function shoes_193(){
super();
addFrameScript(0, frame1, 6, frame7);
}
function frame7(){
gotoAndStop(2);
}
function frame1(){
stop();
}
}
}//package amerie_fla
Section 23
//shoespalette_227 (amerie_fla.shoespalette_227)
package amerie_fla {
import flash.display.*;
public dynamic class shoespalette_227 extends MovieClip {
public var s1:MovieClip;
public var s5:MovieClip;
public var s2:MovieClip;
public var s4:MovieClip;
public var s3:MovieClip;
public function shoespalette_227(){
super();
}
}
}//package amerie_fla
Section 24
//Timeline_18 (amerie_fla.Timeline_18)
package amerie_fla {
import flash.display.*;
public dynamic class Timeline_18 extends MovieClip {
public function Timeline_18(){
super();
addFrameScript(46, frame47);
}
function frame47(){
stop();
}
}
}//package amerie_fla
Section 25
//Timeline_272 (amerie_fla.Timeline_272)
package amerie_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Timeline_272 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;
public function Timeline_272(){
super();
}
}
}//package amerie_fla
Section 26
//Timeline_273 (amerie_fla.Timeline_273)
package amerie_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Timeline_273 extends MovieClip {
public var friendMail:TextField;
public var close:SimpleButton;
public function Timeline_273(){
super();
}
}
}//package amerie_fla
Section 27
//Timeline_292 (amerie_fla.Timeline_292)
package amerie_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Timeline_292 extends MovieClip {
public var friendMail:TextField;
public var close:SimpleButton;
public function Timeline_292(){
super();
}
}
}//package amerie_fla
Section 28
//Timeline_7 (amerie_fla.Timeline_7)
package amerie_fla {
import flash.display.*;
public dynamic class Timeline_7 extends MovieClip {
public var masker:MovieClip;
public function Timeline_7(){
super();
}
}
}//package amerie_fla
Section 29
//tops_202 (amerie_fla.tops_202)
package amerie_fla {
import flash.display.*;
public dynamic class tops_202 extends MovieClip {
public function tops_202(){
super();
addFrameScript(0, frame1, 12, frame13);
}
function frame1(){
stop();
}
function frame13(){
gotoAndStop(2);
}
}
}//package amerie_fla
Section 30
//topspalette_72 (amerie_fla.topspalette_72)
package amerie_fla {
import flash.display.*;
public dynamic class topspalette_72 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 var t11:MovieClip;
public function topspalette_72(){
super();
}
}
}//package amerie_fla
Section 31
//Tween (fl.transitions.Tween)
package fl.transitions {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
public class Tween extends EventDispatcher {
private var _position:Number;// = NAN
public var prevTime:Number;// = NAN
public var prevPos:Number;// = NAN
public var isPlaying:Boolean;// = false
public var begin:Number;// = NAN
private var _fps:Number;// = NAN
private var _time:Number;// = NAN
public var change:Number;// = NAN
private var _finish:Number;// = NAN
public var looping:Boolean;// = false
private var _intervalID:uint;// = 0
public var func:Function;
private var _timer:Timer;// = null
private var _startTime:Number;// = NAN
public var prop:String;// = ""
private var _duration:Number;// = NAN
public var obj:Object;// = null
public var useSeconds:Boolean;// = false
protected static var _mc:MovieClip = new MovieClip();
public function Tween(obj:Object, prop:String, func:Function, begin:Number, finish:Number, duration:Number, useSeconds:Boolean=false){
isPlaying = false;
obj = null;
prop = "";
func = function (t:Number, b:Number, c:Number, d:Number):Number{
return ((((c * t) / d) + b));
};
begin = NaN;
change = NaN;
useSeconds = false;
prevTime = NaN;
prevPos = NaN;
looping = false;
_duration = NaN;
_time = NaN;
_fps = NaN;
_position = NaN;
_startTime = NaN;
_intervalID = 0;
_finish = NaN;
_timer = null;
super();
if (!arguments.length){
return;
};
this.obj = obj;
this.prop = prop;
this.begin = begin;
this.position = begin;
this.duration = duration;
this.useSeconds = useSeconds;
if ((func is Function)){
this.func = func;
};
this.finish = finish;
this._timer = new Timer(100);
this.start();
}
public function continueTo(finish:Number, duration:Number):void{
this.begin = this.position;
this.finish = finish;
if (!isNaN(duration)){
this.duration = duration;
};
this.start();
}
public function stop():void{
this.stopEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_STOP, this._time, this._position));
}
private function fixTime():void{
if (this.useSeconds){
this._startTime = (getTimer() - (this._time * 1000));
};
}
public function set FPS(fps:Number):void{
var oldIsPlaying:Boolean;
oldIsPlaying = this.isPlaying;
this.stopEnterFrame();
this._fps = fps;
if (oldIsPlaying){
this.startEnterFrame();
};
}
public function get finish():Number{
return ((this.begin + this.change));
}
public function get duration():Number{
return (this._duration);
}
protected function startEnterFrame():void{
var milliseconds:Number;
if (isNaN(this._fps)){
_mc.addEventListener(Event.ENTER_FRAME, this.onEnterFrame, false, 0, true);
} else {
milliseconds = (1000 / this._fps);
this._timer.delay = milliseconds;
this._timer.addEventListener(TimerEvent.TIMER, this.timerHandler, false, 0, true);
this._timer.start();
};
this.isPlaying = true;
}
public function set time(t:Number):void{
this.prevTime = this._time;
if (t > this.duration){
if (this.looping){
this.rewind((t - this._duration));
this.update();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_LOOP, this._time, this._position));
} else {
if (this.useSeconds){
this._time = this._duration;
this.update();
};
this.stop();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_FINISH, this._time, this._position));
};
} else {
if (t < 0){
this.rewind();
this.update();
} else {
this._time = t;
this.update();
};
};
}
protected function stopEnterFrame():void{
if (isNaN(this._fps)){
_mc.removeEventListener(Event.ENTER_FRAME, this.onEnterFrame);
} else {
this._timer.stop();
};
this.isPlaying = false;
}
public function getPosition(t:Number=NaN):Number{
if (isNaN(t)){
t = this._time;
};
return (this.func(t, this.begin, this.change, this._duration));
}
public function set finish(value:Number):void{
this.change = (value - this.begin);
}
public function set duration(d:Number):void{
this._duration = ((d)<=0) ? Infinity : d;
}
public function setPosition(p:Number):void{
this.prevPos = this._position;
if (this.prop.length){
this.obj[this.prop] = (this._position = p);
};
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_CHANGE, this._time, this._position));
}
public function resume():void{
this.fixTime();
this.startEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_RESUME, this._time, this._position));
}
public function fforward():void{
this.time = this._duration;
this.fixTime();
}
protected function onEnterFrame(event:Event):void{
this.nextFrame();
}
public function get position():Number{
return (this.getPosition(this._time));
}
public function yoyo():void{
this.continueTo(this.begin, this.time);
}
public function nextFrame():void{
if (this.useSeconds){
this.time = ((getTimer() - this._startTime) / 1000);
} else {
this.time = (this._time + 1);
};
}
protected function timerHandler(timerEvent:TimerEvent):void{
this.nextFrame();
timerEvent.updateAfterEvent();
}
public function get FPS():Number{
return (this._fps);
}
public function rewind(t:Number=0):void{
this._time = t;
this.fixTime();
this.update();
}
public function set position(p:Number):void{
this.setPosition(p);
}
public function get time():Number{
return (this._time);
}
private function update():void{
this.setPosition(this.getPosition(this._time));
}
public function start():void{
this.rewind();
this.startEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_START, this._time, this._position));
}
public function prevFrame():void{
if (!this.useSeconds){
this.time = (this._time - 1);
};
}
}
}//package fl.transitions
Section 32
//TweenEvent (fl.transitions.TweenEvent)
package fl.transitions {
import flash.events.*;
public class TweenEvent extends Event {
public var time:Number;// = NAN
public var position:Number;// = NAN
public static const MOTION_START:String = "motionStart";
public static const MOTION_STOP:String = "motionStop";
public static const MOTION_LOOP:String = "motionLoop";
public static const MOTION_CHANGE:String = "motionChange";
public static const MOTION_FINISH:String = "motionFinish";
public static const MOTION_RESUME:String = "motionResume";
public function TweenEvent(type:String, time:Number, position:Number, bubbles:Boolean=false, cancelable:Boolean=false){
time = NaN;
position = NaN;
super(type, bubbles, cancelable);
this.time = time;
this.position = position;
}
override public function clone():Event{
return (new TweenEvent(this.type, this.time, this.position, this.bubbles, this.cancelable));
}
}
}//package fl.transitions
Section 33
//Back (gs.easing.Back)
package gs.easing {
public class Back {
public function Back(){
super();
}
public static function easeOut(t:Number, b:Number, c:Number, d:Number, s:Number=1.70158):Number{
t = ((t / d) - 1);
return (((c * (((t * t) * (((s + 1) * t) + s)) + 1)) + b));
}
public static function easeIn(t:Number, b:Number, c:Number, d:Number, s:Number=1.70158):Number{
t = (t / d);
return (((((c * t) * t) * (((s + 1) * t) - s)) + b));
}
public static function easeInOut(t:Number, b:Number, c:Number, d:Number, s:Number=1.70158):Number{
t = (t / (d / 2));
if (t < 1){
s = (s * 1.525);
return ((((c / 2) * ((t * t) * (((s + 1) * t) - s))) + b));
};
t = (t - 2);
s = (s * 1.525);
return ((((c / 2) * (((t * t) * (((s + 1) * t) + s)) + 2)) + b));
}
}
}//package gs.easing
Section 34
//Bounce (gs.easing.Bounce)
package gs.easing {
public class Bounce {
public function Bounce(){
super();
}
public static function easeOut(t:Number, b:Number, c:Number, d:Number):Number{
t = (t / d);
if (t < (1 / 2.75)){
return (((c * ((7.5625 * t) * t)) + b));
};
if (t < (2 / 2.75)){
t = (t - (1.5 / 2.75));
return (((c * (((7.5625 * t) * t) + 0.75)) + b));
};
if (t < (2.5 / 2.75)){
t = (t - (2.25 / 2.75));
return (((c * (((7.5625 * t) * t) + 0.9375)) + b));
};
t = (t - (2.625 / 2.75));
return (((c * (((7.5625 * t) * t) + 0.984375)) + b));
}
public static function easeIn(t:Number, b:Number, c:Number, d:Number):Number{
return (((c - easeOut((d - t), 0, c, d)) + b));
}
public static function easeInOut(t:Number, b:Number, c:Number, d:Number):Number{
if (t < (d / 2)){
return (((easeIn((t * 2), 0, c, d) * 0.5) + b));
};
return ((((easeOut(((t * 2) - d), 0, c, d) * 0.5) + (c * 0.5)) + b));
}
}
}//package gs.easing
Section 35
//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($type:String, $info:Object=null, $bubbles:Boolean=false, $cancelable:Boolean=false){
super($type, $bubbles, $cancelable);
this.info = $info;
}
override public function clone():Event{
return (new TweenEvent(this.type, this.info, this.bubbles, this.cancelable));
}
}
}//package gs.events
Section 36
//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(){
super();
this.propName = "autoAlpha";
this.overwriteProps = ["alpha", "visible"];
this.onComplete = onCompleteTween;
}
override public function set changeFactor($n:Number):void{
updateTweens($n);
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($target:Object, $value, $tween:TweenLite):Boolean{
_target = $target;
_tween = $tween;
_visible = Boolean(!(($value == 0)));
_tweenVisible = true;
addTween($target, "alpha", $target.alpha, $value, "alpha");
return (true);
}
override public function killProps($lookup:Object):void{
super.killProps($lookup);
_tweenVisible = !(Boolean(("visible" in $lookup)));
}
}
}//package gs.plugins
Section 37
//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(){
super();
this.propName = "bevelFilter";
this.overwriteProps = ["bevelFilter"];
}
override public function onInitTween($target:Object, $value, $tween:TweenLite):Boolean{
_target = $target;
_type = BevelFilter;
initFilter($value, new BevelFilter(0, 0, 0xFFFFFF, 0.5, 0, 0.5, 2, 2, 0, (($value.quality) || (2))));
return (true);
}
}
}//package gs.plugins
Section 38
//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($n:Number):void{
var i:int;
var p:String;
var b:Object;
var t:Number;
var segments:uint;
var val:Number;
var neg:int;
var oldTarget:Object;
var oldRound:Boolean;
var dx:Number;
var dy:Number;
var cotb:Array;
var toAdd:Number;
if ($n == 1){
for (p in _beziers) {
i = (_beziers[p].length - 1);
_target[p] = _beziers[p][i][2];
};
} else {
for (p in _beziers) {
segments = _beziers[p].length;
if ($n < 0){
i = 0;
} else {
if ($n >= 1){
i = (segments - 1);
} else {
i = int((segments * $n));
};
};
t = (($n - (i * (1 / segments))) * segments);
b = _beziers[p][i];
if (this.round){
val = (b[0] + (t * (((2 * (1 - t)) * (b[1] - b[0])) + (t * (b[2] - b[0])))));
neg = ((val)<0) ? -1 : 1;
_target[p] = ((((val % 1) * neg))>0.5) ? (int(val) + neg) : int(val);
} else {
_target[p] = (b[0] + (t * (((2 * (1 - t)) * (b[1] - b[0])) + (t * (b[2] - b[0])))));
};
};
};
if (_orient){
oldTarget = _target;
oldRound = this.round;
_target = _future;
this.round = false;
_orient = false;
this.changeFactor = ($n + 0.01);
_target = oldTarget;
this.round = oldRound;
_orient = true;
i = 0;
while (i < _orientData.length) {
cotb = _orientData[i];
toAdd = ((cotb[3]) || (0));
dx = (_future[cotb[0]] - _target[cotb[0]]);
dy = (_future[cotb[1]] - _target[cotb[1]]);
_target[cotb[2]] = ((Math.atan2(dy, dx) * _RAD2DEG) + toAdd);
i++;
};
};
}
protected function init($tween:TweenLite, $beziers:Array, $through:Boolean):void{
var props:Object;
var i:int;
var p:String;
_target = $tween.target;
if ($tween.exposedVars.orientToBezier == true){
_orientData = [["x", "y", "rotation", 0]];
_orient = true;
} else {
if (($tween.exposedVars.orientToBezier is Array)){
_orientData = $tween.exposedVars.orientToBezier;
_orient = true;
};
};
props = {};
i = 0;
while (i < $beziers.length) {
for (p in $beziers[i]) {
if (props[p] == undefined){
props[p] = [$tween.target[p]];
};
if (typeof($beziers[i][p]) == "number"){
props[p].push($beziers[i][p]);
} else {
props[p].push(($tween.target[p] + Number($beziers[i][p])));
};
};
i++;
};
for (p in props) {
this.overwriteProps[this.overwriteProps.length] = p;
if ($tween.exposedVars[p] != undefined){
if (typeof($tween.exposedVars[p]) == "number"){
props[p].push($tween.exposedVars[p]);
} else {
props[p].push(($tween.target[p] + Number($tween.exposedVars[p])));
};
delete $tween.exposedVars[p];
i = ($tween.tweens.length - 1);
while (i > -1) {
if ($tween.tweens[i].name == p){
$tween.tweens.splice(i, 1);
};
i--;
};
};
};
_beziers = parseBeziers(props, $through);
}
override public function onInitTween($target:Object, $value, $tween:TweenLite):Boolean{
if (!($value is Array)){
return (false);
};
init($tween, ($value as Array), false);
return (true);
}
override public function killProps($lookup:Object):void{
var p:String;
for (p in _beziers) {
if ((p in $lookup)){
delete _beziers[p];
};
};
super.killProps($lookup);
}
public static function parseBeziers($props:Object, $through:Boolean=false):Object{
var i:int;
var a:Array;
var b:Object;
var p:String;
var all:Object;
all = {};
if ($through){
for (p in $props) {
a = $props[p];
b = [];
all[p] = b;
if (a.length > 2){
b[b.length] = [a[0], (a[1] - ((a[2] - a[0]) / 4)), a[1]];
i = 1;
while (i < (a.length - 1)) {
b[b.length] = [a[i], (a[i] + (a[i] - b[(i - 1)][1])), a[(i + 1)]];
i++;
};
} else {
b[b.length] = [a[0], ((a[0] + a[1]) / 2), a[1]];
};
};
} else {
for (p in $props) {
a = $props[p];
b = [];
all[p] = b;
if (a.length > 3){
b[b.length] = [a[0], a[1], ((a[1] + a[2]) / 2)];
i = 2;
while (i < (a.length - 2)) {
b[b.length] = [b[(i - 2)][2], a[i], ((a[i] + a[(i + 1)]) / 2)];
i++;
};
b[b.length] = [b[(b.length - 1)][2], a[(a.length - 2)], a[(a.length - 1)]];
} else {
if (a.length == 3){
b[b.length] = [a[0], a[1], a[2]];
} else {
if (a.length == 2){
b[b.length] = [a[0], ((a[0] + a[1]) / 2), a[1]];
};
};
};
};
};
return (all);
}
}
}//package gs.plugins
Section 39
//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(){
super();
this.propName = "bezierThrough";
}
override public function onInitTween($target:Object, $value, $tween:TweenLite):Boolean{
if (!($value is Array)){
return (false);
};
init($tween, ($value as Array), true);
return (true);
}
}
}//package gs.plugins
Section 40
//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(){
super();
this.propName = "blurFilter";
this.overwriteProps = ["blurFilter"];
}
override public function onInitTween($target:Object, $value, $tween:TweenLite):Boolean{
_target = $target;
_type = BlurFilter;
initFilter($value, new BlurFilter(0, 0, (($value.quality) || (2))));
return (true);
}
}
}//package gs.plugins
Section 41
//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(){
super();
this.propName = "colorMatrixFilter";
this.overwriteProps = ["colorMatrixFilter"];
}
override public function onInitTween($target:Object, $value, $tween:TweenLite):Boolean{
var cmf:Object;
var endMatrix:Array;
_target = $target;
_type = ColorMatrixFilter;
cmf = $value;
initFilter({}, new ColorMatrixFilter(_idMatrix.slice()));
_matrix = ColorMatrixFilter(_filter).matrix;
endMatrix = [];
if (((!((cmf.matrix == null))) && ((cmf.matrix is Array)))){
endMatrix = cmf.matrix;
} else {
if (cmf.relative == true){
endMatrix = _matrix.slice();
} else {
endMatrix = _idMatrix.slice();
};
endMatrix = setBrightness(endMatrix, cmf.brightness);
endMatrix = setContrast(endMatrix, cmf.contrast);
endMatrix = setHue(endMatrix, cmf.hue);
endMatrix = setSaturation(endMatrix, cmf.saturation);
endMatrix = setThreshold(endMatrix, cmf.threshold);
if (!isNaN(cmf.colorize)){
endMatrix = colorize(endMatrix, cmf.colorize, cmf.amount);
};
};
_matrixTween = new EndArrayPlugin();
_matrixTween.init(_matrix, endMatrix);
return (true);
}
override public function set changeFactor($n:Number):void{
_matrixTween.changeFactor = $n;
ColorMatrixFilter(_filter).matrix = _matrix;
super.changeFactor = $n;
}
public static function setSaturation($m:Array, $n:Number):Array{
var inv:Number;
var r:Number;
var g:Number;
var b:Number;
var temp:Array;
if (isNaN($n)){
return ($m);
};
inv = (1 - $n);
r = (inv * _lumR);
g = (inv * _lumG);
b = (inv * _lumB);
temp = [(r + $n), g, b, 0, 0, r, (g + $n), b, 0, 0, r, g, (b + $n), 0, 0, 0, 0, 0, 1, 0];
return (applyMatrix(temp, $m));
}
public static function setHue($m:Array, $n:Number):Array{
var c:Number;
var s:Number;
var temp:Array;
if (isNaN($n)){
return ($m);
};
$n = ($n * (Math.PI / 180));
c = Math.cos($n);
s = Math.sin($n);
temp = [((_lumR + (c * (1 - _lumR))) + (s * -(_lumR))), ((_lumG + (c * -(_lumG))) + (s * -(_lumG))), ((_lumB + (c * -(_lumB))) + (s * (1 - _lumB))), 0, 0, ((_lumR + (c * -(_lumR))) + (s * 0.143)), ((_lumG + (c * (1 - _lumG))) + (s * 0.14)), ((_lumB + (c * -(_lumB))) + (s * -0.283)), 0, 0, ((_lumR + (c * -(_lumR))) + (s * -((1 - _lumR)))), ((_lumG + (c * -(_lumG))) + (s * _lumG)), ((_lumB + (c * (1 - _lumB))) + (s * _lumB)), 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1];
return (applyMatrix(temp, $m));
}
public static function setThreshold($m:Array, $n:Number):Array{
var temp:Array;
if (isNaN($n)){
return ($m);
};
temp = [(_lumR * 0x0100), (_lumG * 0x0100), (_lumB * 0x0100), 0, (-256 * $n), (_lumR * 0x0100), (_lumG * 0x0100), (_lumB * 0x0100), 0, (-256 * $n), (_lumR * 0x0100), (_lumG * 0x0100), (_lumB * 0x0100), 0, (-256 * $n), 0, 0, 0, 1, 0];
return (applyMatrix(temp, $m));
}
public static function applyMatrix($m:Array, $m2:Array):Array{
var temp:Array;
var i:int;
var z:int;
var y:int;
var x:int;
if (((!(($m is Array))) || (!(($m2 is Array))))){
return ($m2);
};
temp = [];
i = 0;
z = 0;
y = 0;
while (y < 4) {
x = 0;
while (x < 5) {
if (x == 4){
z = $m[(i + 4)];
} else {
z = 0;
};
temp[(i + x)] = ((((($m[i] * $m2[x]) + ($m[(i + 1)] * $m2[(x + 5)])) + ($m[(i + 2)] * $m2[(x + 10)])) + ($m[(i + 3)] * $m2[(x + 15)])) + z);
x++;
};
i = (i + 5);
y++;
};
return (temp);
}
public static function colorize($m:Array, $color:Number, $amount:Number=1):Array{
var r:Number;
var g:Number;
var b:Number;
var inv:Number;
var temp:Array;
if (isNaN($color)){
return ($m);
};
if (isNaN($amount)){
$amount = 1;
};
r = ((($color >> 16) & 0xFF) / 0xFF);
g = ((($color >> 8) & 0xFF) / 0xFF);
b = (($color & 0xFF) / 0xFF);
inv = (1 - $amount);
temp = [(inv + (($amount * r) * _lumR)), (($amount * r) * _lumG), (($amount * r) * _lumB), 0, 0, (($amount * g) * _lumR), (inv + (($amount * g) * _lumG)), (($amount * g) * _lumB), 0, 0, (($amount * b) * _lumR), (($amount * b) * _lumG), (inv + (($amount * b) * _lumB)), 0, 0, 0, 0, 0, 1, 0];
return (applyMatrix(temp, $m));
}
public static function setBrightness($m:Array, $n:Number):Array{
if (isNaN($n)){
return ($m);
};
$n = (($n * 100) - 100);
return (applyMatrix([1, 0, 0, 0, $n, 0, 1, 0, 0, $n, 0, 0, 1, 0, $n, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1], $m));
}
public static function setContrast($m:Array, $n:Number):Array{
var temp:Array;
if (isNaN($n)){
return ($m);
};
$n = ($n + 0.01);
temp = [$n, 0, 0, 0, (128 * (1 - $n)), 0, $n, 0, 0, (128 * (1 - $n)), 0, 0, $n, 0, (128 * (1 - $n)), 0, 0, 0, 1, 0];
return (applyMatrix(temp, $m));
}
}
}//package gs.plugins
Section 42
//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(){
super();
this.propName = "dropShadowFilter";
this.overwriteProps = ["dropShadowFilter"];
}
override public function onInitTween($target:Object, $value, $tween:TweenLite):Boolean{
_target = $target;
_type = DropShadowFilter;
initFilter($value, new DropShadowFilter(0, 45, 0, 0, 0, 0, 1, (($value.quality) || (2)), $value.inner, $value.knockout, $value.hideObject));
return (true);
}
}
}//package gs.plugins
Section 43
//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($n:Number):void{
var i:int;
var ti:ArrayTweenInfo;
var val:Number;
var neg:int;
if (this.round){
i = (_info.length - 1);
while (i > -1) {
ti = _info[i];
val = (ti.start + (ti.change * $n));
neg = ((val)<0) ? -1 : 1;
_a[ti.index] = ((((val % 1) * neg))>0.5) ? (int(val) + neg) : int(val);
i--;
};
} else {
i = (_info.length - 1);
while (i > -1) {
ti = _info[i];
_a[ti.index] = (ti.start + (ti.change * $n));
i--;
};
};
}
public function init($start:Array, $end:Array):void{
var i:int;
_a = $start;
i = ($end.length - 1);
while (i > -1) {
if (((!(($start[i] == $end[i]))) && (!(($start[i] == null))))){
_info[_info.length] = new ArrayTweenInfo(i, _a[i], ($end[i] - _a[i]));
};
i--;
};
}
override public function onInitTween($target:Object, $value, $tween:TweenLite):Boolean{
if (((!(($target is Array))) || (!(($value is Array))))){
return (false);
};
init(($target as Array), $value);
return (true);
}
}
}//package gs.plugins
Section 44
//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;
public function FilterPlugin(){
super();
}
override public function set changeFactor($n:Number):void{
var i:int;
var ti:TweenInfo;
var filters:Array;
filters = _target.filters;
i = (_tweens.length - 1);
while (i > -1) {
ti = _tweens[i];
ti.target[ti.property] = (ti.start + (ti.change * $n));
i--;
};
if (!(filters[_index] is _type)){
_index = (filters.length - 1);
i = (filters.length - 1);
while (i > -1) {
if ((filters[i] is _type)){
_index = i;
break;
};
i--;
};
};
filters[_index] = _filter;
_target.filters = filters;
}
public function onCompleteTween():void{
var i:int;
var filters:Array;
if (_remove){
filters = _target.filters;
if (!(filters[_index] is _type)){
i = (filters.length - 1);
while (i > -1) {
if ((filters[i] is _type)){
filters.splice(i, 1);
break;
};
i--;
};
} else {
filters.splice(_index, 1);
};
_target.filters = filters;
};
}
protected function initFilter($props:Object, $default:BitmapFilter):void{
var filters:Array;
var p:String;
var i:int;
var colorTween:HexColorsPlugin;
var props:Object;
filters = _target.filters;
_index = -1;
if ($props.index != null){
_index = $props.index;
} else {
i = (filters.length - 1);
while (i > -1) {
if ((filters[i] is _type)){
_index = i;
break;
};
i--;
};
};
if ((((((_index == -1)) || ((filters[_index] == null)))) || (($props.addFilter == true)))){
_index = (($props.index)!=null) ? $props.index : filters.length;
filters[_index] = $default;
_target.filters = filters;
};
_filter = filters[_index];
_remove = Boolean(($props.remove == true));
if (_remove){
this.onComplete = onCompleteTween;
};
props = (($props.isTV)==true) ? $props.exposedVars : $props;
for (p in props) {
if (((((((((!((p in _filter))) || ((_filter[p] == props[p])))) || ((p == "remove")))) || ((p == "index")))) || ((p == "addFilter")))){
} else {
if ((((((p == "color")) || ((p == "highlightColor")))) || ((p == "shadowColor")))){
colorTween = new HexColorsPlugin();
colorTween.initColor(_filter, p, _filter[p], props[p]);
_tweens[_tweens.length] = new TweenInfo(colorTween, "changeFactor", 0, 1, p, false);
} else {
if ((((((((p == "quality")) || ((p == "inner")))) || ((p == "knockout")))) || ((p == "hideObject")))){
_filter[p] = props[p];
} else {
addTween(_filter, p, _filter[p], props[p], p);
};
};
};
};
}
}
}//package gs.plugins
Section 45
//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(){
super();
this.propName = "frame";
this.overwriteProps = ["frame"];
this.round = true;
}
override public function set changeFactor($n:Number):void{
updateTweens($n);
_target.gotoAndStop(this.frame);
}
override public function onInitTween($target:Object, $value, $tween:TweenLite):Boolean{
if (((!(($target is MovieClip))) || (isNaN($value)))){
return (false);
};
_target = ($target as MovieClip);
this.frame = _target.currentFrame;
addTween(this, "frame", this.frame, $value, "frame");
return (true);
}
}
}//package gs.plugins
Section 46
//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(){
super();
this.propName = "glowFilter";
this.overwriteProps = ["glowFilter"];
}
override public function onInitTween($target:Object, $value, $tween:TweenLite):Boolean{
_target = $target;
_type = GlowFilter;
initFilter($value, new GlowFilter(0xFFFFFF, 0, 0, 0, (($value.strength) || (1)), (($value.quality) || (2)), $value.inner, $value.knockout));
return (true);
}
}
}//package gs.plugins
Section 47
//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(){
super();
this.propName = "hexColors";
this.overwriteProps = [];
_colors = [];
}
override public function set changeFactor($n:Number):void{
var i:int;
var a:Array;
i = (_colors.length - 1);
while (i > -1) {
a = _colors[i];
a[0][a[1]] = ((((a[2] + ($n * a[3])) << 16) | ((a[4] + ($n * a[5])) << 8)) | (a[6] + ($n * a[7])));
i--;
};
}
override public function onInitTween($target:Object, $value, $tween:TweenLite):Boolean{
var p:String;
for (p in $value) {
initColor($target, p, uint($target[p]), uint($value[p]));
};
return (true);
}
override public function killProps($lookup:Object):void{
var i:int;
i = (_colors.length - 1);
while (i > -1) {
if ($lookup[_colors[i][1]] != undefined){
_colors.splice(i, 1);
};
i--;
};
super.killProps($lookup);
}
public function initColor($target:Object, $propName:String, $start:uint, $end:uint):void{
var r:Number;
var g:Number;
var b:Number;
if ($start != $end){
r = ($start >> 16);
g = (($start >> 8) & 0xFF);
b = ($start & 0xFF);
_colors[_colors.length] = [$target, $propName, r, (($end >> 16) - r), g, ((($end >> 8) & 0xFF) - g), b, (($end & 0xFF) - b)];
this.overwriteProps[this.overwriteProps.length] = $propName;
};
}
}
}//package gs.plugins
Section 48
//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(){
super();
this.propName = "removeTint";
}
}
}//package gs.plugins
Section 49
//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(){
super();
this.propName = "roundProps";
this.overwriteProps = [];
this.round = true;
}
public function add($object:Object, $propName:String, $start:Number, $change:Number):void{
addTween($object, $propName, $start, ($start + $change), $propName);
this.overwriteProps[this.overwriteProps.length] = $propName;
}
}
}//package gs.plugins
Section 50
//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(){
super();
this.propName = "shortRotation";
this.overwriteProps = [];
}
override public function onInitTween($target:Object, $value, $tween:TweenLite):Boolean{
var p:String;
if (typeof($value) == "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 (p in $value) {
initRotation($target, p, $target[p], $value[p]);
};
return (true);
}
public function initRotation($target:Object, $propName:String, $start:Number, $end:Number):void{
var dif:Number;
dif = (($end - $start) % 360);
if (dif != (dif % 180)){
dif = ((dif)<0) ? (dif + 360) : (dif - 360);
};
addTween($target, $propName, $start, ($start + dif), $propName);
this.overwriteProps[this.overwriteProps.length] = $propName;
}
}
}//package gs.plugins
Section 51
//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(){
super();
this.propName = "tint";
this.overwriteProps = ["tint"];
}
override public function set changeFactor($n:Number):void{
var ct:ColorTransform;
updateTweens($n);
if (_ignoreAlpha){
ct = _target.transform.colorTransform;
_ct.alphaMultiplier = ct.alphaMultiplier;
_ct.alphaOffset = ct.alphaOffset;
};
_target.transform.colorTransform = _ct;
}
public function init($target:DisplayObject, $end:ColorTransform):void{
var i:int;
var p:String;
_target = $target;
_ct = _target.transform.colorTransform;
i = (_props.length - 1);
while (i > -1) {
p = _props[i];
if (_ct[p] != $end[p]){
_tweens[_tweens.length] = new TweenInfo(_ct, p, _ct[p], ($end[p] - _ct[p]), "tint", false);
};
i--;
};
}
override public function onInitTween($target:Object, $value, $tween:TweenLite):Boolean{
var end:ColorTransform;
if (!($target is DisplayObject)){
return (false);
};
end = new ColorTransform();
if (((!(($value == null))) && (!(($tween.exposedVars.removeTint == true))))){
end.color = uint($value);
};
_ignoreAlpha = true;
init(($target as DisplayObject), end);
return (true);
}
}
}//package gs.plugins
Section 52
//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($changeFactor:Number):void{
var i:int;
var ti:TweenInfo;
var val:Number;
var neg:int;
if (this.round){
i = (_tweens.length - 1);
while (i > -1) {
ti = _tweens[i];
val = (ti.start + (ti.change * $changeFactor));
neg = ((val)<0) ? -1 : 1;
ti.target[ti.property] = ((((val % 1) * neg))>0.5) ? (int(val) + neg) : int(val);
i--;
};
} else {
i = (_tweens.length - 1);
while (i > -1) {
ti = _tweens[i];
ti.target[ti.property] = (ti.start + (ti.change * $changeFactor));
i--;
};
};
}
public function set changeFactor($n:Number):void{
updateTweens($n);
_changeFactor = $n;
}
protected function addTween($object:Object, $propName:String, $start:Number, $end, $overwriteProp:String=null):void{
var change:Number;
if ($end != null){
change = ((typeof($end))=="number") ? ($end - $start) : Number($end);
if (change != 0){
_tweens[_tweens.length] = new TweenInfo($object, $propName, $start, change, (($overwriteProp) || ($propName)), false);
};
};
}
public function killProps($lookup:Object):void{
var i:int;
i = (this.overwriteProps.length - 1);
while (i > -1) {
if ((this.overwriteProps[i] in $lookup)){
this.overwriteProps.splice(i, 1);
};
i--;
};
i = (_tweens.length - 1);
while (i > -1) {
if ((_tweens[i].name in $lookup)){
_tweens.splice(i, 1);
};
i--;
};
}
public function onInitTween($target:Object, $value, $tween:TweenLite):Boolean{
addTween($target, this.propName, $target[this.propName], $value, this.propName);
return (true);
}
public function get changeFactor():Number{
return (_changeFactor);
}
public static function activate($plugins:Array):Boolean{
var i:int;
var instance:Object;
i = ($plugins.length - 1);
while (i > -1) {
instance = new ($plugins[i]);
TweenLite.plugins[instance.propName] = $plugins[i];
i--;
};
return (true);
}
}
}//package gs.plugins
Section 53
//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(){
super();
this.propName = "visible";
this.overwriteProps = ["visible"];
this.onComplete = onCompleteTween;
}
override public function set changeFactor($n: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($target:Object, $value, $tween:TweenLite):Boolean{
_target = $target;
_tween = $tween;
_visible = Boolean($value);
return (true);
}
}
}//package gs.plugins
Section 54
//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(){
super();
this.propName = "volume";
this.overwriteProps = ["volume"];
}
override public function set changeFactor($n:Number):void{
updateTweens($n);
_target.soundTransform = _st;
}
override public function onInitTween($target:Object, $value, $tween:TweenLite):Boolean{
if (((isNaN($value)) || (!($target.hasOwnProperty("soundTransform"))))){
return (false);
};
_target = $target;
_st = _target.soundTransform;
addTween(_st, "volume", _st.volume, $value, "volume");
return (true);
}
}
}//package gs.plugins
Section 55
//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($index:uint, $start:Number, $change:Number){
super();
this.index = $index;
this.start = $start;
this.change = $change;
}
}
}//package gs.utils.tween
Section 56
//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($target:Object, $property:String, $start:Number, $change:Number, $name:String, $isPlugin:Boolean){
super();
this.target = $target;
this.property = $property;
this.start = $start;
this.change = $change;
this.name = $name;
this.isPlugin = $isPlugin;
}
}
}//package gs.utils.tween
Section 57
//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 function OverwriteManager(){
super();
}
public static function killVars($killVars:Object, $vars:Object, $tweens:Array):void{
var i:int;
var p:String;
var ti:TweenInfo;
i = ($tweens.length - 1);
while (i > -1) {
ti = $tweens[i];
if ((ti.name in $killVars)){
$tweens.splice(i, 1);
} else {
if (((ti.isPlugin) && ((ti.name == "_MULTIPLE_")))){
ti.target.killProps($killVars);
if (ti.target.overwriteProps.length == 0){
$tweens.splice(i, 1);
};
};
};
i--;
};
for (p in $killVars) {
delete $vars[p];
};
}
public static function manageOverwrites($tween:TweenLite, $targetTweens:Array):void{
var vars:Object;
var m:int;
var startTime:Number;
var a:Array;
var i:int;
var tween:TweenLite;
var index:int;
var tweens:Array;
var v:Object;
var j:int;
var ti:TweenInfo;
var overwriteProps:Array;
vars = $tween.vars;
m = ((vars.overwrite)==undefined) ? mode : int(vars.overwrite);
if ((((m < 2)) || (($targetTweens == null)))){
return;
};
startTime = $tween.startTime;
a = [];
index = -1;
i = ($targetTweens.length - 1);
while (i > -1) {
tween = $targetTweens[i];
if (tween == $tween){
index = i;
} else {
if ((((((i < index)) && ((tween.startTime <= startTime)))) && (((tween.startTime + ((tween.duration * 1000) / tween.combinedTimeScale)) > startTime)))){
a[a.length] = tween;
};
};
i--;
};
if ((((a.length == 0)) || (($tween.tweens.length == 0)))){
return;
};
if (m == AUTO){
tweens = $tween.tweens;
v = {};
i = (tweens.length - 1);
while (i > -1) {
ti = tweens[i];
if (ti.isPlugin){
if (ti.name == "_MULTIPLE_"){
overwriteProps = ti.target.overwriteProps;
j = (overwriteProps.length - 1);
while (j > -1) {
v[overwriteProps[j]] = true;
j--;
};
} else {
v[ti.name] = true;
};
v[ti.target.propName] = true;
} else {
v[ti.name] = true;
};
i--;
};
i = (a.length - 1);
while (i > -1) {
killVars(v, a[i].exposedVars, a[i].tweens);
i--;
};
} else {
i = (a.length - 1);
while (i > -1) {
a[i].enabled = false;
i--;
};
};
}
public static function init($mode: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 = $mode;
enabled = true;
return (mode);
}
}
}//package gs
Section 58
//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($target:Object, $duration:Number, $vars:Object){
var mode:int;
super();
if ($target == 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 = $vars;
this.duration = (($duration) || (0.001));
this.delay = (($vars.delay) || (0));
this.combinedTimeScale = (($vars.timeScale) || (1));
this.active = Boolean(((($duration == 0)) && ((this.delay == 0))));
this.target = $target;
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));
mode = (((($vars.overwrite == undefined)) || (((!(overwriteManager.enabled)) && (($vars.overwrite > 1)))))) ? overwriteManager.mode : int($vars.overwrite);
if (((!(($target in masterList))) || ((mode == 1)))){
masterList[$target] = [this];
} else {
masterList[$target].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($b:Boolean):void{
var a:Array;
var found:Boolean;
var i:int;
if ($b){
if (!(this.target in masterList)){
masterList[this.target] = [this];
} else {
a = masterList[this.target];
i = (a.length - 1);
while (i > -1) {
if (a[i] == this){
found = true;
break;
};
i--;
};
if (!found){
a[a.length] = this;
};
};
};
this.gc = ($b) ? 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($t:uint):void{
var time:Number;
var factor:Number;
var ti:TweenInfo;
var i:int;
time = (($t - this.startTime) * 0.001);
if (time >= this.duration){
time = this.duration;
factor = ((((this.ease == this.vars.ease)) || ((this.duration == 0.001)))) ? 1 : 0;
} else {
factor = this.ease(time, 0, 1, this.duration);
};
i = (this.tweens.length - 1);
while (i > -1) {
ti = this.tweens[i];
ti.target[ti.property] = (ti.start + (factor * ti.change));
i--;
};
if (_hasUpdate){
this.vars.onUpdate.apply(null, this.vars.onUpdateParams);
};
if (time == 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 p:String;
var i:int;
var plugin:*;
var ti: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 (p in this.exposedVars) {
if ((p in _reservedProps)){
} else {
if ((p in plugins)){
plugin = new (plugins[p]);
if (plugin.onInitTween(this.target, this.exposedVars[p], this) == false){
this.tweens[this.tweens.length] = new TweenInfo(this.target, p, this.target[p], ((typeof(this.exposedVars[p]))=="number") ? (this.exposedVars[p] - this.target[p]) : Number(this.exposedVars[p]), p, false);
} else {
this.tweens[this.tweens.length] = new TweenInfo(plugin, "changeFactor", 0, 1, ((plugin.overwriteProps.length)==1) ? plugin.overwriteProps[0] : "_MULTIPLE_", true);
_hasPlugins = true;
};
} else {
this.tweens[this.tweens.length] = new TweenInfo(this.target, p, this.target[p], ((typeof(this.exposedVars[p]))=="number") ? (this.exposedVars[p] - this.target[p]) : Number(this.exposedVars[p]), p, false);
};
};
};
if (this.vars.runBackwards == true){
i = (this.tweens.length - 1);
while (i > -1) {
ti = this.tweens[i];
ti.start = (ti.start + ti.change);
ti.change = -(ti.change);
i--;
};
};
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($t:Number, $b:Number, $c:Number, $d:Number):Number{
return (this.vars.proxiedEase.apply(null, arguments.concat(this.vars.easeParams)));
}
public function killVars($vars:Object):void{
if (overwriteManager.enabled){
overwriteManager.killVars($vars, this.exposedVars, this.tweens);
};
}
public function complete($skipRender:Boolean=false):void{
var i:int;
if (!$skipRender){
if (!this.initted){
initTweenVals();
};
this.startTime = (currentTime - ((this.duration * 1000) / this.combinedTimeScale));
render(currentTime);
return;
};
if (_hasPlugins){
i = (this.tweens.length - 1);
while (i > -1) {
if (((this.tweens[i].isPlugin) && (!((this.tweens[i].target.onComplete == null))))){
this.tweens[i].target.onComplete();
};
i--;
};
};
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($e:Event=null):void{
var time:uint;
var ml:Dictionary;
var a:Array;
var i:int;
var tween:TweenLite;
time = (currentTime = getTimer());
ml = masterList;
for each (a in ml) {
i = (a.length - 1);
while (i > -1) {
tween = a[i];
if (tween.active){
tween.render(time);
} else {
if (tween.gc){
a.splice(i, 1);
} else {
if (time >= tween.startTime){
tween.activate();
tween.render(time);
};
};
};
i--;
};
};
}
public static function removeTween($tween:TweenLite, $clear:Boolean=true):void{
if ($tween != null){
if ($clear){
$tween.clear();
};
$tween.enabled = false;
};
}
public static function killTweensOf($target:Object=null, $complete:Boolean=false):void{
var a:Array;
var i:int;
var tween:TweenLite;
if (((!(($target == null))) && (($target in masterList)))){
a = masterList[$target];
i = (a.length - 1);
while (i > -1) {
tween = a[i];
if ((($complete) && (!(tween.gc)))){
tween.complete(false);
};
tween.clear();
i--;
};
delete masterList[$target];
};
}
public static function from($target:Object, $duration:Number, $vars:Object):TweenLite{
$vars.runBackwards = true;
return (new TweenLite($target, $duration, $vars));
}
public static function easeOut($t:Number, $b:Number, $c:Number, $d:Number):Number{
$t = ($t / $d);
return ((((-($c) * $t) * ($t - 2)) + $b));
}
protected static function killGarbage($e:TimerEvent):void{
var ml:Dictionary;
var tgt:Object;
ml = masterList;
for (tgt in ml) {
if (ml[tgt].length == 0){
delete ml[tgt];
};
};
}
public static function delayedCall($delay:Number, $onComplete:Function, $onCompleteParams:Array=null):TweenLite{
return (new TweenLite($onComplete, 0, {delay:$delay, onComplete:$onComplete, onCompleteParams:$onCompleteParams, overwrite:0}));
}
public static function to($target:Object, $duration:Number, $vars:Object):TweenLite{
return (new TweenLite($target, $duration, $vars));
}
}
}//package gs
Section 59
//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($target:Object, $duration:Number, $vars:Object){
super($target, $duration, $vars);
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 (((($duration == 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($b:Boolean):void{
if (!$b){
_pausedTweens[this] = null;
delete _pausedTweens[this];
};
super.enabled = $b;
if ($b){
this.combinedTimeScale = (_timeScale * _globalTimeScale);
};
}
public function set reversed($b:Boolean):void{
if (this.reversed != $b){
reverse();
};
}
override public function render($t:uint):void{
var time:Number;
var factor:Number;
var ti:TweenInfo;
var i:int;
time = ((($t - this.startTime) * 0.001) * this.combinedTimeScale);
if (time >= this.duration){
time = this.duration;
factor = ((((this.ease == this.vars.ease)) || ((this.duration == 0.001)))) ? 1 : 0;
} else {
factor = this.ease(time, 0, 1, this.duration);
};
i = (this.tweens.length - 1);
while (i > -1) {
ti = this.tweens[i];
ti.target[ti.property] = (ti.start + (factor * ti.change));
i--;
};
if (_hasUpdate){
this.vars.onUpdate.apply(null, this.vars.onUpdateParams);
};
if (time == this.duration){
complete(true);
};
}
protected function adjustStartValues():void{
var p:Number;
var factor:Number;
var inv:Number;
var endValue:Number;
var ti:TweenInfo;
var i:int;
p = this.progress;
if (p != 0){
factor = this.ease(p, 0, 1, 1);
inv = (1 / (1 - factor));
i = (this.tweens.length - 1);
while (i > -1) {
ti = this.tweens[i];
endValue = (ti.start + ti.change);
if (ti.isPlugin){
ti.change = ((endValue - factor) * inv);
} else {
ti.change = ((endValue - ti.target[ti.property]) * inv);
};
ti.start = (endValue - ti.change);
i--;
};
};
}
public function get timeScale():Number{
return (_timeScale);
}
public function restart($includeDelay:Boolean=false):void{
if ($includeDelay){
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($names:Array):void{
var v:Object;
var i:int;
v = {};
i = ($names.length - 1);
while (i > -1) {
v[$names[i]] = true;
i--;
};
killVars(v);
}
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($skipRender: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 = ($skipRender) ? (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($skipRender);
}
public function invalidate($adjustStartValues:Boolean=true):void{
var p:Number;
if (this.initted){
p = this.progress;
if (((!($adjustStartValues)) && (!((p == 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 (p != 0){
if ($adjustStartValues){
adjustStartValues();
} else {
this.progress = p;
};
};
};
}
public function get progress():Number{
var t:Number;
var p:Number;
t = (isNaN(this.pauseTime)) ? currentTime : this.pauseTime;
p = (((((t - this.initTime) * 0.001) - (this.delay / this.combinedTimeScale)) / this.duration) * this.combinedTimeScale);
if (p > 1){
return (1);
};
if (p < 0){
return (0);
};
return (p);
}
public function willTrigger($type:String):Boolean{
if (_dispatcher == null){
return (false);
};
return (_dispatcher.willTrigger($type));
}
public function dispatchEvent($e:Event):Boolean{
if (_dispatcher == null){
return (false);
};
return (_dispatcher.dispatchEvent($e));
}
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($property:String, $value, $adjustStartValues:Boolean=true):void{
var p:Number;
var i:int;
var ti:TweenInfo;
var varsOld:Object;
var exposedVarsOld:Object;
var tweensOld:Array;
var hadPlugins:Boolean;
var addedTweens:Array;
var killVars:Object;
p = this.progress;
if (this.initted){
if (!$adjustStartValues){
i = (this.tweens.length - 1);
while (i > -1) {
ti = this.tweens[i];
if (ti.name == $property){
ti.target[ti.property] = ti.start;
};
i--;
};
};
varsOld = this.vars;
exposedVarsOld = this.exposedVars;
tweensOld = this.tweens;
hadPlugins = _hasPlugins;
this.tweens = [];
this.vars = (this.exposedVars = {});
this.vars[$property] = $value;
initTweenVals();
if (((!((this.ease == reverseEase))) && ((varsOld.ease is Function)))){
this.ease = varsOld.ease;
};
if ((($adjustStartValues) && (!((p == 0))))){
adjustStartValues();
};
addedTweens = this.tweens;
this.vars = varsOld;
this.exposedVars = exposedVarsOld;
this.tweens = tweensOld;
killVars = {};
killVars[$property] = true;
i = (this.tweens.length - 1);
while (i > -1) {
ti = this.tweens[i];
if (ti.name == $property){
this.tweens.splice(i, 1);
} else {
if (((ti.isPlugin) && ((ti.name == "_MULTIPLE_")))){
ti.target.killProps(killVars);
if (ti.target.overwriteProps.length == 0){
this.tweens.splice(i, 1);
};
};
};
i--;
};
this.tweens = this.tweens.concat(addedTweens);
_hasPlugins = Boolean(((hadPlugins) || (_hasPlugins)));
};
this.vars[$property] = (this.exposedVars[$property] = $value);
}
public function set timeScale($n:Number):void{
if ($n < 1E-5){
$n = (_timeScale = 1E-5);
} else {
_timeScale = $n;
$n = ($n * _globalTimeScale);
};
this.initTime = ((currentTime - ((((currentTime - this.initTime) - (this.delay * (1000 / this.combinedTimeScale))) * this.combinedTimeScale) * (1 / $n))) - (this.delay * (1000 / $n)));
if (this.startTime != 999999999999999){
this.startTime = (this.initTime + (this.delay * (1000 / $n)));
};
this.combinedTimeScale = $n;
}
public function removeEventListener($type:String, $listener:Function, $useCapture:Boolean=false):void{
if (_dispatcher != null){
_dispatcher.removeEventListener($type, $listener, $useCapture);
};
}
override public function initTweenVals():void{
var i:int;
var j:int;
var prop:String;
var multiProps:String;
var rp:Array;
var plugin:Object;
var ti: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))))){
rp = this.exposedVars.roundProps;
i = (rp.length - 1);
while (i > -1) {
prop = rp[i];
j = (this.tweens.length - 1);
while (j > -1) {
ti = this.tweens[j];
if (ti.name == prop){
if (ti.isPlugin){
ti.target.round = true;
} else {
if (plugin == null){
plugin = new TweenLite.plugins.roundProps();
plugin.add(ti.target, prop, ti.start, ti.change);
_hasPlugins = true;
this.tweens[j] = new TweenInfo(plugin, "changeFactor", 0, 1, prop, true);
} else {
plugin.add(ti.target, prop, ti.start, ti.change);
this.tweens.splice(j, 1);
};
};
} else {
if (((((ti.isPlugin) && ((ti.name == "_MULTIPLE_")))) && (!(ti.target.round)))){
multiProps = ((" " + ti.target.overwriteProps.join(" ")) + " ");
if (multiProps.indexOf(((" " + prop) + " ")) != -1){
ti.target.round = true;
};
};
};
j--;
};
i--;
};
};
}
protected function initDispatcher():void{
var v:Object;
var p: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 {
v = {};
for (p in this.vars) {
v[p] = this.vars[p];
};
this.vars = v;
};
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($n:Number):void{
this.startTime = (currentTime - ((this.duration * $n) * 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($adjustDuration:Boolean=true, $forcePlay:Boolean=true):void{
var p:Number;
this.ease = ((this.vars.ease)==this.ease) ? reverseEase : this.vars.ease;
p = this.progress;
if ((($adjustDuration) && ((p > 0)))){
this.startTime = (currentTime - ((((1 - p) * this.duration) * 1000) / this.combinedTimeScale));
this.initTime = (this.startTime - (this.delay * (1000 / this.combinedTimeScale)));
};
if ($forcePlay != false){
if (p < 1){
resume();
} else {
restart();
};
};
}
public function addEventListener($type:String, $listener:Function, $useCapture:Boolean=false, $priority:int=0, $useWeakReference:Boolean=false):void{
if (_dispatcher == null){
initDispatcher();
};
if (((($type == TweenEvent.UPDATE)) && (!((this.vars.onUpdate == onUpdateDispatcher))))){
this.vars.onUpdate = onUpdateDispatcher;
_hasUpdate = true;
};
_dispatcher.addEventListener($type, $listener, $useCapture, $priority, $useWeakReference);
}
public function set paused($b:Boolean):void{
if ($b){
pause();
} else {
resume();
};
}
public function hasEventListener($type:String):Boolean{
if (_dispatcher == null){
return (false);
};
return (_dispatcher.hasEventListener($type));
}
public function pause():void{
if (isNaN(this.pauseTime)){
this.pauseTime = currentTime;
this.startTime = 999999999999999;
this.enabled = false;
_pausedTweens[this] = this;
};
}
public function reverseEase($t:Number, $b:Number, $c:Number, $d:Number):Number{
return (this.vars.ease(($d - $t), $b, $c, $d));
}
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($n:Number):void{
setGlobalTimeScale($n);
}
public static function pauseAll($tweens:Boolean=true, $delayedCalls:Boolean=false):void{
changePause(true, $tweens, $delayedCalls);
}
public static function killAllDelayedCalls($complete:Boolean=false):void{
killAll($complete, false, true);
}
public static function setGlobalTimeScale($scale:Number):void{
var ml:Dictionary;
var i:int;
var a:Array;
if ($scale < 1E-5){
$scale = 1E-5;
};
ml = masterList;
_globalTimeScale = $scale;
for each (a in ml) {
i = (a.length - 1);
while (i > -1) {
if ((a[i] is TweenMax)){
a[i].timeScale = (a[i].timeScale * 1);
};
i--;
};
};
}
public static function get globalTimeScale():Number{
return (_globalTimeScale);
}
public static function getTweensOf($target:Object):Array{
var a:Array;
var toReturn:Array;
var tween:TweenLite;
var i:int;
a = masterList[$target];
toReturn = [];
if (a != null){
i = (a.length - 1);
while (i > -1) {
if (!a[i].gc){
toReturn[toReturn.length] = a[i];
};
i--;
};
};
for each (tween in _pausedTweens) {
if (tween.target == $target){
toReturn[toReturn.length] = tween;
};
};
return (toReturn);
}
public static function delayedCall($delay:Number, $onComplete:Function, $onCompleteParams:Array=null, $persist:Boolean=false):TweenMax{
return (new TweenMax($onComplete, 0, {delay:$delay, onComplete:$onComplete, onCompleteParams:$onCompleteParams, persist:$persist, overwrite:0}));
}
public static function isTweening($target:Object):Boolean{
var a:Array;
var i:int;
a = getTweensOf($target);
i = (a.length - 1);
while (i > -1) {
if (((((a[i].active) || ((a[i].startTime == currentTime)))) && (!(a[i].gc)))){
return (true);
};
i--;
};
return (false);
}
public static function changePause($pause:Boolean, $tweens:Boolean=true, $delayedCalls:Boolean=false):void{
var a:Array;
var isDC:Boolean;
var i:int;
a = getAllTweens();
i = (a.length - 1);
while (i > -1) {
isDC = (a[i].target == a[i].vars.onComplete);
if ((((a[i] is TweenMax)) && ((((isDC == $delayedCalls)) || (!((isDC == $tweens))))))){
a[i].paused = $pause;
};
i--;
};
}
public static function killAllTweens($complete:Boolean=false):void{
killAll($complete, true, false);
}
public static function from($target:Object, $duration:Number, $vars:Object):TweenMax{
$vars.runBackwards = true;
return (new TweenMax($target, $duration, $vars));
}
public static function killAll($complete:Boolean=false, $tweens:Boolean=true, $delayedCalls:Boolean=true):void{
var a:Array;
var isDC:Boolean;
var i:int;
a = getAllTweens();
i = (a.length - 1);
while (i > -1) {
isDC = (a[i].target == a[i].vars.onComplete);
if ((((isDC == $delayedCalls)) || (!((isDC == $tweens))))){
if ($complete){
a[i].complete(false);
a[i].clear();
} else {
TweenLite.removeTween(a[i], true);
};
};
i--;
};
}
public static function getAllTweens():Array{
var ml:Dictionary;
var toReturn:Array;
var a:Array;
var i:int;
var tween:TweenLite;
ml = masterList;
toReturn = [];
for each (a in ml) {
i = (a.length - 1);
while (i > -1) {
if (!a[i].gc){
toReturn[toReturn.length] = a[i];
};
i--;
};
};
for each (tween in _pausedTweens) {
toReturn[toReturn.length] = tween;
};
return (toReturn);
}
public static function resumeAll($tweens:Boolean=true, $delayedCalls:Boolean=false):void{
changePause(false, $tweens, $delayedCalls);
}
public static function to($target:Object, $duration:Number, $vars:Object):TweenMax{
return (new TweenMax($target, $duration, $vars));
}
}
}//package gs
Section 60
//backscore (backscore)
package {
import flash.media.*;
public dynamic class backscore extends Sound {
public function backscore(){
super();
}
}
}//package
Section 61
//Globe (Globe)
package {
public class Globe {
public static var chain:Number = 0;
public static var tops:Number = 0;
public static var earring:Number = 0;
public static var temp:Number = 0;
public static var playback:Boolean = false;
public static var hair:Number = 0;
public static var bgss:Number = 0;
public static var tex:String = "";
public static var shoes:Number = 0;
public static var bags:Number = 0;
public static var bottoms:Number = 0;
public static var glass:Number = 0;
public static var dress:Number = 0;
public function Globe(){
super();
}
}
}//package
Section 62
//MochiBot (MochiBot)
package {
import flash.display.*;
import flash.net.*;
import flash.system.*;
public dynamic class MochiBot extends Sprite {
public function MochiBot(){
super();
}
public static function track(parent:Sprite, tag:String):MochiBot{
var self:MochiBot;
var server:String;
var lv:URLVariables;
var url:String;
var req:URLRequest;
var loader:Loader;
if (Security.sandboxType == "localWithFile"){
return (null);
};
self = new (MochiBot);
parent.addChild(self);
Security.allowDomain("*");
Security.allowInsecureDomain("*");
server = "http://core.mochibot.com/my/core.swf";
lv = new URLVariables();
lv["sb"] = Security.sandboxType;
lv["v"] = Capabilities.version;
lv["swfid"] = tag;
lv["mv"] = "8";
lv["fv"] = "9";
url = self.root.loaderInfo.loaderURL;
if (url.indexOf("http") == 0){
lv["url"] = url;
} else {
lv["url"] = "local";
};
req = new URLRequest(server);
req.contentType = "application/x-www-form-urlencoded";
req.method = URLRequestMethod.POST;
req.data = lv;
loader = new Loader();
self.addChild(loader);
loader.load(req);
return (self);
}
}
}//package