Section 1
//mcBackground (mcBackground)
package {
import flash.display.*;
public dynamic class mcBackground extends MovieClip {
}
}//package
Section 2
//mcBlink (mcBlink)
package {
import flash.display.*;
public dynamic class mcBlink extends MovieClip {
}
}//package
Section 3
//mcBody1 (mcBody1)
package {
import flash.display.*;
public dynamic class mcBody1 extends MovieClip {
}
}//package
Section 4
//mcBody2 (mcBody2)
package {
import flash.display.*;
public dynamic class mcBody2 extends MovieClip {
}
}//package
Section 5
//mcBody3 (mcBody3)
package {
import flash.display.*;
public dynamic class mcBody3 extends MovieClip {
}
}//package
Section 6
//mcBody4 (mcBody4)
package {
import flash.display.*;
public dynamic class mcBody4 extends MovieClip {
}
}//package
Section 7
//mcBody5 (mcBody5)
package {
import flash.display.*;
public dynamic class mcBody5 extends MovieClip {
}
}//package
Section 8
//mcBodyButton (mcBodyButton)
package {
import flash.display.*;
public dynamic class mcBodyButton extends MovieClip {
}
}//package
Section 9
//mcBottom1 (mcBottom1)
package {
import flash.display.*;
public dynamic class mcBottom1 extends MovieClip {
}
}//package
Section 10
//mcBottom2 (mcBottom2)
package {
import flash.display.*;
public dynamic class mcBottom2 extends MovieClip {
}
}//package
Section 11
//mcBottom3 (mcBottom3)
package {
import flash.display.*;
public dynamic class mcBottom3 extends MovieClip {
}
}//package
Section 12
//mcBottom4 (mcBottom4)
package {
import flash.display.*;
public dynamic class mcBottom4 extends MovieClip {
}
}//package
Section 13
//mcBottom5 (mcBottom5)
package {
import flash.display.*;
public dynamic class mcBottom5 extends MovieClip {
}
}//package
Section 14
//mcBottom6 (mcBottom6)
package {
import flash.display.*;
public dynamic class mcBottom6 extends MovieClip {
}
}//package
Section 15
//mcBottom7 (mcBottom7)
package {
import flash.display.*;
public dynamic class mcBottom7 extends MovieClip {
}
}//package
Section 16
//mcBottomButton (mcBottomButton)
package {
import flash.display.*;
public dynamic class mcBottomButton extends MovieClip {
}
}//package
Section 17
//mcButtonSnd (mcButtonSnd)
package {
import flash.media.*;
public dynamic class mcButtonSnd extends Sound {
}
}//package
Section 18
//mcClear (mcClear)
package {
import flash.display.*;
public dynamic class mcClear extends MovieClip {
}
}//package
Section 19
//mcDone (mcDone)
package {
import flash.display.*;
public dynamic class mcDone extends MovieClip {
}
}//package
Section 20
//mcEye1 (mcEye1)
package {
import flash.display.*;
public dynamic class mcEye1 extends MovieClip {
}
}//package
Section 21
//mcEye2 (mcEye2)
package {
import flash.display.*;
public dynamic class mcEye2 extends MovieClip {
}
}//package
Section 22
//mcEye3 (mcEye3)
package {
import flash.display.*;
public dynamic class mcEye3 extends MovieClip {
}
}//package
Section 23
//mcEye4 (mcEye4)
package {
import flash.display.*;
public dynamic class mcEye4 extends MovieClip {
}
}//package
Section 24
//mcEye5 (mcEye5)
package {
import flash.display.*;
public dynamic class mcEye5 extends MovieClip {
}
}//package
Section 25
//mcEye6 (mcEye6)
package {
import flash.display.*;
public dynamic class mcEye6 extends MovieClip {
}
}//package
Section 26
//mcEyeButton (mcEyeButton)
package {
import flash.display.*;
public dynamic class mcEyeButton extends MovieClip {
}
}//package
Section 27
//mcGloveButton (mcGloveButton)
package {
import flash.display.*;
public dynamic class mcGloveButton extends MovieClip {
}
}//package
Section 28
//mcHair1 (mcHair1)
package {
import flash.display.*;
public dynamic class mcHair1 extends MovieClip {
}
}//package
Section 29
//mcHair10 (mcHair10)
package {
import flash.display.*;
public dynamic class mcHair10 extends MovieClip {
}
}//package
Section 30
//mcHair11 (mcHair11)
package {
import flash.display.*;
public dynamic class mcHair11 extends MovieClip {
}
}//package
Section 31
//mcHair12 (mcHair12)
package {
import flash.display.*;
public dynamic class mcHair12 extends MovieClip {
}
}//package
Section 32
//mcHair13 (mcHair13)
package {
import flash.display.*;
public dynamic class mcHair13 extends MovieClip {
}
}//package
Section 33
//mcHair14 (mcHair14)
package {
import flash.display.*;
public dynamic class mcHair14 extends MovieClip {
}
}//package
Section 34
//mcHair15 (mcHair15)
package {
import flash.display.*;
public dynamic class mcHair15 extends MovieClip {
}
}//package
Section 35
//mcHair16 (mcHair16)
package {
import flash.display.*;
public dynamic class mcHair16 extends MovieClip {
}
}//package
Section 36
//mcHair17 (mcHair17)
package {
import flash.display.*;
public dynamic class mcHair17 extends MovieClip {
}
}//package
Section 37
//mcHair18 (mcHair18)
package {
import flash.display.*;
public dynamic class mcHair18 extends MovieClip {
}
}//package
Section 38
//mcHair19 (mcHair19)
package {
import flash.display.*;
public dynamic class mcHair19 extends MovieClip {
}
}//package
Section 39
//mcHair2 (mcHair2)
package {
import flash.display.*;
public dynamic class mcHair2 extends MovieClip {
}
}//package
Section 40
//mcHair20 (mcHair20)
package {
import flash.display.*;
public dynamic class mcHair20 extends MovieClip {
}
}//package
Section 41
//mcHair21 (mcHair21)
package {
import flash.display.*;
public dynamic class mcHair21 extends MovieClip {
}
}//package
Section 42
//mcHair22 (mcHair22)
package {
import flash.display.*;
public dynamic class mcHair22 extends MovieClip {
}
}//package
Section 43
//mcHair23 (mcHair23)
package {
import flash.display.*;
public dynamic class mcHair23 extends MovieClip {
}
}//package
Section 44
//mcHair24 (mcHair24)
package {
import flash.display.*;
public dynamic class mcHair24 extends MovieClip {
}
}//package
Section 45
//mcHair25 (mcHair25)
package {
import flash.display.*;
public dynamic class mcHair25 extends MovieClip {
}
}//package
Section 46
//mcHair26 (mcHair26)
package {
import flash.display.*;
public dynamic class mcHair26 extends MovieClip {
}
}//package
Section 47
//mcHair27 (mcHair27)
package {
import flash.display.*;
public dynamic class mcHair27 extends MovieClip {
}
}//package
Section 48
//mcHair28 (mcHair28)
package {
import flash.display.*;
public dynamic class mcHair28 extends MovieClip {
}
}//package
Section 49
//mcHair29 (mcHair29)
package {
import flash.display.*;
public dynamic class mcHair29 extends MovieClip {
}
}//package
Section 50
//mcHair3 (mcHair3)
package {
import flash.display.*;
public dynamic class mcHair3 extends MovieClip {
}
}//package
Section 51
//mcHair30 (mcHair30)
package {
import flash.display.*;
public dynamic class mcHair30 extends MovieClip {
}
}//package
Section 52
//mcHair31 (mcHair31)
package {
import flash.display.*;
public dynamic class mcHair31 extends MovieClip {
}
}//package
Section 53
//mcHair32 (mcHair32)
package {
import flash.display.*;
public dynamic class mcHair32 extends MovieClip {
}
}//package
Section 54
//mcHair33 (mcHair33)
package {
import flash.display.*;
public dynamic class mcHair33 extends MovieClip {
}
}//package
Section 55
//mcHair34 (mcHair34)
package {
import flash.display.*;
public dynamic class mcHair34 extends MovieClip {
}
}//package
Section 56
//mcHair35 (mcHair35)
package {
import flash.display.*;
public dynamic class mcHair35 extends MovieClip {
}
}//package
Section 57
//mcHair36 (mcHair36)
package {
import flash.display.*;
public dynamic class mcHair36 extends MovieClip {
}
}//package
Section 58
//mcHair37 (mcHair37)
package {
import flash.display.*;
public dynamic class mcHair37 extends MovieClip {
}
}//package
Section 59
//mcHair38 (mcHair38)
package {
import flash.display.*;
public dynamic class mcHair38 extends MovieClip {
}
}//package
Section 60
//mcHair39 (mcHair39)
package {
import flash.display.*;
public dynamic class mcHair39 extends MovieClip {
}
}//package
Section 61
//mcHair4 (mcHair4)
package {
import flash.display.*;
public dynamic class mcHair4 extends MovieClip {
}
}//package
Section 62
//mcHair40 (mcHair40)
package {
import flash.display.*;
public dynamic class mcHair40 extends MovieClip {
}
}//package
Section 63
//mcHair41 (mcHair41)
package {
import flash.display.*;
public dynamic class mcHair41 extends MovieClip {
}
}//package
Section 64
//mcHair42 (mcHair42)
package {
import flash.display.*;
public dynamic class mcHair42 extends MovieClip {
}
}//package
Section 65
//mcHair5 (mcHair5)
package {
import flash.display.*;
public dynamic class mcHair5 extends MovieClip {
}
}//package
Section 66
//mcHair6 (mcHair6)
package {
import flash.display.*;
public dynamic class mcHair6 extends MovieClip {
}
}//package
Section 67
//mcHair7 (mcHair7)
package {
import flash.display.*;
public dynamic class mcHair7 extends MovieClip {
}
}//package
Section 68
//mcHair8 (mcHair8)
package {
import flash.display.*;
public dynamic class mcHair8 extends MovieClip {
}
}//package
Section 69
//mcHair9 (mcHair9)
package {
import flash.display.*;
public dynamic class mcHair9 extends MovieClip {
}
}//package
Section 70
//mcHairButton (mcHairButton)
package {
import flash.display.*;
public dynamic class mcHairButton extends MovieClip {
}
}//package
Section 71
//mcHat1 (mcHat1)
package {
import flash.display.*;
public dynamic class mcHat1 extends MovieClip {
}
}//package
Section 72
//mcHat2 (mcHat2)
package {
import flash.display.*;
public dynamic class mcHat2 extends MovieClip {
}
}//package
Section 73
//mcHat3 (mcHat3)
package {
import flash.display.*;
public dynamic class mcHat3 extends MovieClip {
}
}//package
Section 74
//mcHat4 (mcHat4)
package {
import flash.display.*;
public dynamic class mcHat4 extends MovieClip {
}
}//package
Section 75
//mcHat5 (mcHat5)
package {
import flash.display.*;
public dynamic class mcHat5 extends MovieClip {
}
}//package
Section 76
//mcHatButton (mcHatButton)
package {
import flash.display.*;
public dynamic class mcHatButton extends MovieClip {
}
}//package
Section 77
//mcHolding1 (mcHolding1)
package {
import flash.display.*;
public dynamic class mcHolding1 extends MovieClip {
}
}//package
Section 78
//mcHolding2 (mcHolding2)
package {
import flash.display.*;
public dynamic class mcHolding2 extends MovieClip {
}
}//package
Section 79
//mcHolding3 (mcHolding3)
package {
import flash.display.*;
public dynamic class mcHolding3 extends MovieClip {
}
}//package
Section 80
//mcHolding4 (mcHolding4)
package {
import flash.display.*;
public dynamic class mcHolding4 extends MovieClip {
}
}//package
Section 81
//mcHolding5 (mcHolding5)
package {
import flash.display.*;
public dynamic class mcHolding5 extends MovieClip {
}
}//package
Section 82
//mcHolding6 (mcHolding6)
package {
import flash.display.*;
public dynamic class mcHolding6 extends MovieClip {
}
}//package
Section 83
//mcHolding7 (mcHolding7)
package {
import flash.display.*;
public dynamic class mcHolding7 extends MovieClip {
}
}//package
Section 84
//mcJacket1 (mcJacket1)
package {
import flash.display.*;
public dynamic class mcJacket1 extends MovieClip {
}
}//package
Section 85
//mcJacket2 (mcJacket2)
package {
import flash.display.*;
public dynamic class mcJacket2 extends MovieClip {
}
}//package
Section 86
//mcJacket3 (mcJacket3)
package {
import flash.display.*;
public dynamic class mcJacket3 extends MovieClip {
}
}//package
Section 87
//mcJacket4 (mcJacket4)
package {
import flash.display.*;
public dynamic class mcJacket4 extends MovieClip {
}
}//package
Section 88
//mcJacket5 (mcJacket5)
package {
import flash.display.*;
public dynamic class mcJacket5 extends MovieClip {
}
}//package
Section 89
//mcJacket6 (mcJacket6)
package {
import flash.display.*;
public dynamic class mcJacket6 extends MovieClip {
}
}//package
Section 90
//mcJacketButton (mcJacketButton)
package {
import flash.display.*;
public dynamic class mcJacketButton extends MovieClip {
}
}//package
Section 91
//mcLayer (mcLayer)
package {
import flash.display.*;
public dynamic class mcLayer extends MovieClip {
}
}//package
Section 92
//mcLogoBG (mcLogoBG)
package {
import flash.display.*;
public dynamic class mcLogoBG extends MovieClip {
}
}//package
Section 93
//mcMoreGames (mcMoreGames)
package {
import flash.display.*;
public dynamic class mcMoreGames extends MovieClip {
}
}//package
Section 94
//mcMusic (mcMusic)
package {
import flash.display.*;
public dynamic class mcMusic extends MovieClip {
}
}//package
Section 95
//mcMusicSnd (mcMusicSnd)
package {
import flash.media.*;
public dynamic class mcMusicSnd extends Sound {
}
}//package
Section 96
//mcNeckButton (mcNeckButton)
package {
import flash.display.*;
public dynamic class mcNeckButton extends MovieClip {
}
}//package
Section 97
//mcNecklace1 (mcNecklace1)
package {
import flash.display.*;
public dynamic class mcNecklace1 extends MovieClip {
}
}//package
Section 98
//mcNecklace2 (mcNecklace2)
package {
import flash.display.*;
public dynamic class mcNecklace2 extends MovieClip {
}
}//package
Section 99
//mcNecklace3 (mcNecklace3)
package {
import flash.display.*;
public dynamic class mcNecklace3 extends MovieClip {
}
}//package
Section 100
//mcNecklace4 (mcNecklace4)
package {
import flash.display.*;
public dynamic class mcNecklace4 extends MovieClip {
}
}//package
Section 101
//mcNecklace5 (mcNecklace5)
package {
import flash.display.*;
public dynamic class mcNecklace5 extends MovieClip {
}
}//package
Section 102
//mcNecklace6 (mcNecklace6)
package {
import flash.display.*;
public dynamic class mcNecklace6 extends MovieClip {
}
}//package
Section 103
//mcPlayAgain (mcPlayAgain)
package {
import flash.display.*;
public dynamic class mcPlayAgain extends MovieClip {
}
}//package
Section 104
//mcPrint (mcPrint)
package {
import flash.display.*;
public dynamic class mcPrint extends MovieClip {
}
}//package
Section 105
//mcRandom (mcRandom)
package {
import flash.display.*;
public dynamic class mcRandom extends MovieClip {
}
}//package
Section 106
//mcShirt1 (mcShirt1)
package {
import flash.display.*;
public dynamic class mcShirt1 extends MovieClip {
}
}//package
Section 107
//mcShirt2 (mcShirt2)
package {
import flash.display.*;
public dynamic class mcShirt2 extends MovieClip {
}
}//package
Section 108
//mcShirt3 (mcShirt3)
package {
import flash.display.*;
public dynamic class mcShirt3 extends MovieClip {
}
}//package
Section 109
//mcShirt4 (mcShirt4)
package {
import flash.display.*;
public dynamic class mcShirt4 extends MovieClip {
}
}//package
Section 110
//mcShirt5 (mcShirt5)
package {
import flash.display.*;
public dynamic class mcShirt5 extends MovieClip {
}
}//package
Section 111
//mcShirt6 (mcShirt6)
package {
import flash.display.*;
public dynamic class mcShirt6 extends MovieClip {
}
}//package
Section 112
//mcShirtButton (mcShirtButton)
package {
import flash.display.*;
public dynamic class mcShirtButton extends MovieClip {
}
}//package
Section 113
//mcShoeButton (mcShoeButton)
package {
import flash.display.*;
public dynamic class mcShoeButton extends MovieClip {
}
}//package
Section 114
//mcShoes1 (mcShoes1)
package {
import flash.display.*;
public dynamic class mcShoes1 extends MovieClip {
}
}//package
Section 115
//mcShoes2 (mcShoes2)
package {
import flash.display.*;
public dynamic class mcShoes2 extends MovieClip {
}
}//package
Section 116
//mcShoes3 (mcShoes3)
package {
import flash.display.*;
public dynamic class mcShoes3 extends MovieClip {
}
}//package
Section 117
//mcShoes4 (mcShoes4)
package {
import flash.display.*;
public dynamic class mcShoes4 extends MovieClip {
}
}//package
Section 118
//mcShoes5 (mcShoes5)
package {
import flash.display.*;
public dynamic class mcShoes5 extends MovieClip {
}
}//package
Section 119
//mcShoes6 (mcShoes6)
package {
import flash.display.*;
public dynamic class mcShoes6 extends MovieClip {
}
}//package
Section 120
//mcSmallLogo (mcSmallLogo)
package {
import flash.display.*;
public dynamic class mcSmallLogo extends MovieClip {
public var dressmeupButton:SimpleButton;
}
}//package
Section 121
//mcSnow (mcSnow)
package {
import flash.display.*;
public dynamic class mcSnow extends MovieClip {
}
}//package
Section 122
//mcSnow2 (mcSnow2)
package {
import flash.display.*;
public dynamic class mcSnow2 extends MovieClip {
}
}//package
Section 123
//mcSnow3 (mcSnow3)
package {
import flash.display.*;
public dynamic class mcSnow3 extends MovieClip {
}
}//package
Section 124
//mcWindow (mcWindow)
package {
import flash.display.*;
public dynamic class mcWindow extends MovieClip {
}
}//package
Section 125
//preloader (preloader)
package {
import flash.events.*;
import flash.display.*;
import flash.net.*;
public dynamic class preloader extends MovieClip {
public var loadbar:MovieClip;
public function preloader(){
addFrameScript(0, frame1, 1, frame2, 294, frame295);
}
public function loader(_arg1:Event){
var _local2:*;
var _local3:*;
_local2 = MovieClip(root).loaderInfo.bytesLoaded;
_local3 = MovieClip(root).loaderInfo.bytesTotal;
loadbar.scaleX = (_local2 / _local3);
if (_local2 == _local3){
this.play();
this.removeEventListener(Event.ENTER_FRAME, loader);
};
}
function frame295(){
this.removeEventListener(MouseEvent.CLICK, sitelink);
MovieClip(root).play();
}
function frame1(){
MovieClip(root).stop();
this.stop();
this.addEventListener(Event.ENTER_FRAME, loader);
}
function frame2(){
this.buttonMode = true;
this.addEventListener(MouseEvent.CLICK, sitelink);
}
public function sitelink(_arg1:MouseEvent){
var _local2:String;
var _local3:URLRequest;
_local2 = "http://www.dressupwho.com";
_local3 = new URLRequest(_local2);
navigateToURL(_local3, "_blank");
}
}
}//package
Section 126
//Winter (Winter)
package {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.utils.*;
import flash.text.*;
import flash.printing.*;
import flash.net.*;
public class Winter extends MovieClip {
private const startSpeed:int = 30;
private var holdingList:Array;
private var hairIndex:int;
private var channelButton:SoundChannel;
private var shoeList:Array;
public var printButton:mcPrint;
public var necklaceButton:mcNeckButton;
private var bodyIndex:int;
private var eyeList:Array;
private var gameTimer:Timer;
private var shirtIndex:int;
private var jacketList:Array;
private var jacketIndex:int;
private var deletedLayer:Boolean;
public var eyeButton:mcEyeButton;
private var shoeIndex:int;
public var shirtButton:mcShirtButton;
public var moregamesButton:mcMoreGames;
private var bMusic:Boolean;
private var channelMusic:SoundChannel;
private var hatIndex:int;
private var buttonSound:mcButtonSnd;
public var playagainButton:mcPlayAgain;
private var bDone:Boolean;
private var necklaceIndex:int;
private var stageClick:Boolean;
public var background:mcBackground;
private var logoBG;
private var eyeIndex:int;
private var necklaceList:Array;
public var bottomButton:mcBottomButton;
public var doneButton:mcDone;
private var gameSprite:Sprite;
private var layer;
private var smallLogoClick;
private var blink;
private var deletedLogo:Boolean;
private var bottomList:Array;
private var bottomIndex:int;
private var bodyList:Array;
public var bodyButton:mcBodyButton;
public var jacketButton:mcJacketButton;
private var hairList:Array;
public var hatButton:mcHatButton;
private var logo;
public var hairButton:mcHairButton;
public var musicButton:mcMusic;
private var shirtList:Array;
private var holdingIndex:int;
public var randomButton:mcRandom;
private var hatList:Array;
public var clearButton:mcClear;
public var holdingButton:mcGloveButton;
private var musicSound:mcMusicSnd;
public var shoeButton:mcShoeButton;
public function Winter(){
logo = new preloader();
logoBG = new mcLogoBG();
layer = new mcLayer();
blink = new mcBlink();
smallLogoClick = new mcSmallLogo();
bodyList = new Array();
eyeList = new Array();
shoeList = new Array();
shirtList = new Array();
jacketList = new Array();
necklaceList = new Array();
holdingList = new Array();
hairList = new Array();
hatList = new Array();
bottomList = new Array();
musicSound = new mcMusicSnd();
buttonSound = new mcButtonSnd();
super();
bDone = false;
bMusic = true;
stageClick = false;
gameSprite = new Sprite();
addChild(gameSprite);
logoBG.x = 0;
logoBG.y = 0;
logoBG.width = 750;
logoBG.height = 550;
gameSprite.addChild(logoBG);
logoBG.addEventListener(MouseEvent.MOUSE_DOWN, LogoBGClick);
logo.x = 350;
logo.y = 275;
logo.startFrame = 0;
logo.endFrame = 295;
logo.curFrame = logo.startFrame;
gameSprite.addChild(logo);
gameTimer = new Timer(startSpeed);
gameTimer.addEventListener(TimerEvent.TIMER, GameLoop);
gameTimer.start();
deletedLogo = false;
stage.addEventListener(MouseEvent.MOUSE_UP, StageOut);
stage.addEventListener(MouseEvent.MOUSE_DOWN, StageDown);
}
public function BottomClick(_arg1:MouseEvent){
var _local2:int;
var _local3:Boolean;
channelButton = buttonSound.play(0, 1);
bottomButton.gotoAndStop(3);
_local2 = 0;
while (_local2 < bottomList.length) {
bottomList[_local2].visible = false;
_local2++;
};
bottomIndex++;
if (bottomIndex > (bottomList.length - 1)){
bottomIndex = 0;
};
_local3 = false;
if (bottomIndex >= 0){
_local3 = true;
};
bottomList[bottomIndex].visible = _local3;
}
public function LogoBGClick(_arg1:MouseEvent){
navigateToURL(new URLRequest("http://www.dressupwho.com/"), "_blank");
}
public function InitJackets(){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:int;
_local1 = new mcJacket1();
_local1.x = 176;
_local1.y = 72;
_local1.width = 219;
_local1.height = 276;
jacketList.push(_local1);
gameSprite.addChild(_local1);
_local2 = new mcJacket2();
_local2.x = _local1.x;
_local2.y = _local1.y;
_local2.width = _local1.width;
_local2.height = _local1.height;
jacketList.push(_local2);
gameSprite.addChild(_local2);
_local3 = new mcJacket3();
_local3.x = _local1.x;
_local3.y = _local1.y;
_local3.width = _local1.width;
_local3.height = _local1.height;
jacketList.push(_local3);
gameSprite.addChild(_local3);
_local4 = new mcJacket4();
_local4.x = _local1.x;
_local4.y = _local1.y;
_local4.width = _local1.width;
_local4.height = _local1.height;
jacketList.push(_local4);
gameSprite.addChild(_local4);
_local5 = new mcJacket5();
_local5.x = _local1.x;
_local5.y = _local1.y;
_local5.width = _local1.width;
_local5.height = _local1.height;
jacketList.push(_local5);
gameSprite.addChild(_local5);
_local6 = new mcJacket6();
_local6.x = _local1.x;
_local6.y = _local1.y;
_local6.width = _local1.width;
_local6.height = _local1.height;
jacketList.push(_local6);
gameSprite.addChild(_local6);
_local7 = 0;
while (_local7 < jacketList.length) {
jacketList[_local7].visible = false;
_local7++;
};
jacketIndex = -1;
jacketButton.gotoAndStop(1);
jacketButton.addEventListener(MouseEvent.MOUSE_DOWN, JacketClick);
}
public function Clear(){
var _local1:int;
_local1 = 0;
_local1 = 0;
while (_local1 < bodyList.length) {
bodyList[_local1].visible = false;
_local1++;
};
_local1 = 0;
while (_local1 < eyeList.length) {
eyeList[_local1].visible = false;
_local1++;
};
_local1 = 0;
while (_local1 < shoeList.length) {
shoeList[_local1].visible = false;
_local1++;
};
_local1 = 0;
while (_local1 < shirtList.length) {
shirtList[_local1].visible = false;
_local1++;
};
_local1 = 0;
while (_local1 < jacketList.length) {
jacketList[_local1].visible = false;
_local1++;
};
_local1 = 0;
while (_local1 < necklaceList.length) {
necklaceList[_local1].visible = false;
_local1++;
};
_local1 = 0;
while (_local1 < holdingList.length) {
holdingList[_local1].visible = false;
_local1++;
};
_local1 = 0;
while (_local1 < hairList.length) {
hairList[_local1].visible = false;
_local1++;
};
_local1 = 0;
while (_local1 < hatList.length) {
hatList[_local1].visible = false;
_local1++;
};
_local1 = 0;
while (_local1 < bottomList.length) {
bottomList[_local1].visible = false;
_local1++;
};
bodyIndex = 0;
bodyList[bodyIndex].visible = true;
eyeIndex = 0;
eyeList[eyeIndex].visible = true;
hairIndex = 0;
hairList[hairIndex].visible = true;
shoeIndex = -1;
jacketIndex = -1;
necklaceIndex = -1;
holdingIndex = -1;
hatIndex = -1;
bottomIndex = -1;
shirtIndex = -1;
}
public function InitBottoms(){
var _local1:*;
var _local2:int;
var _local3:*;
_local1 = new mcBottom1();
_local1.x = 249;
_local1.y = 262;
_local1.width = 253;
_local1.height = 220;
bottomList.push(_local1);
gameSprite.addChild(_local1);
_local2 = 1;
while (_local2 < 7) {
if (_local2 == 1){
_local3 = new mcBottom2();
};
if (_local2 == 2){
_local3 = new mcBottom3();
};
if (_local2 == 3){
_local3 = new mcBottom4();
};
if (_local2 == 4){
_local3 = new mcBottom5();
};
if (_local2 == 5){
_local3 = new mcBottom6();
};
if (_local2 == 6){
_local3 = new mcBottom7();
};
_local3.x = _local1.x;
_local3.y = _local1.y;
_local3.width = _local1.width;
_local3.height = _local1.height;
bottomList.push(_local3);
gameSprite.addChild(_local3);
_local2++;
};
_local2 = 0;
while (_local2 < bottomList.length) {
bottomList[_local2].visible = false;
_local2++;
};
bottomIndex = -1;
bottomButton.gotoAndStop(1);
bottomButton.addEventListener(MouseEvent.MOUSE_DOWN, BottomClick);
}
public function InitNecklaces(){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:int;
_local1 = new mcNecklace1();
_local1.x = 238;
_local1.y = 87;
_local1.width = 104;
_local1.height = 217;
necklaceList.push(_local1);
gameSprite.addChild(_local1);
_local2 = new mcNecklace2();
_local2.x = _local1.x;
_local2.y = _local1.y;
_local2.width = _local1.width;
_local2.height = _local1.height;
necklaceList.push(_local2);
gameSprite.addChild(_local2);
_local3 = new mcNecklace3();
_local3.x = _local1.x;
_local3.y = _local1.y;
_local3.width = _local1.width;
_local3.height = _local1.height;
necklaceList.push(_local3);
gameSprite.addChild(_local3);
_local4 = new mcNecklace4();
_local4.x = _local1.x;
_local4.y = _local1.y;
_local4.width = _local1.width;
_local4.height = _local1.height;
necklaceList.push(_local4);
gameSprite.addChild(_local4);
_local5 = new mcNecklace5();
_local5.x = _local1.x;
_local5.y = _local1.y;
_local5.width = _local1.width;
_local5.height = _local1.height;
necklaceList.push(_local5);
gameSprite.addChild(_local5);
_local6 = new mcNecklace6();
_local6.x = _local1.x;
_local6.y = _local1.y;
_local6.width = _local1.width;
_local6.height = _local1.height;
necklaceList.push(_local6);
gameSprite.addChild(_local6);
_local7 = 0;
while (_local7 < necklaceList.length) {
necklaceList[_local7].visible = false;
_local7++;
};
necklaceIndex = -1;
necklaceButton.gotoAndStop(1);
necklaceButton.addEventListener(MouseEvent.MOUSE_DOWN, NecklaceClick);
}
public function RandomClick(_arg1:MouseEvent){
randomButton.gotoAndStop(3);
channelButton = buttonSound.play(0, 1);
Randomize();
}
public function MusicClick(_arg1:MouseEvent){
if (bMusic){
musicButton.gotoAndStop(2);
bMusic = false;
channelMusic.stop();
} else {
if (!bMusic){
musicButton.gotoAndStop(1);
bMusic = true;
channelMusic = musicSound.play(0, 999999);
};
};
}
public function InitHats(){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:int;
_local1 = new mcHat1();
_local1.x = 238;
_local1.y = 0;
_local1.width = 110;
_local1.height = 219;
hatList.push(_local1);
gameSprite.addChild(_local1);
_local2 = new mcHat2();
_local2.x = _local1.x;
_local2.y = _local1.y;
_local2.width = _local1.width;
_local2.height = _local1.height;
hatList.push(_local2);
gameSprite.addChild(_local2);
_local3 = new mcHat3();
_local3.x = _local1.x;
_local3.y = _local1.y;
_local3.width = _local1.width;
_local3.height = _local1.height;
hatList.push(_local3);
gameSprite.addChild(_local3);
_local4 = new mcHat4();
_local4.x = _local1.x;
_local4.y = _local1.y;
_local4.width = _local1.width;
_local4.height = _local1.height;
hatList.push(_local4);
gameSprite.addChild(_local4);
_local5 = new mcHat5();
_local5.x = _local1.x;
_local5.y = _local1.y;
_local5.width = _local1.width;
_local5.height = _local1.height;
hatList.push(_local5);
gameSprite.addChild(_local5);
_local6 = 0;
while (_local6 < hatList.length) {
hatList[_local6].visible = false;
_local6++;
};
hatIndex = -1;
hatButton.gotoAndStop(1);
hatButton.addEventListener(MouseEvent.MOUSE_DOWN, HatClick);
}
public function InitShirts(){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:int;
_local1 = new mcShirt1();
_local1.x = 188;
_local1.y = 115;
_local1.width = 189;
_local1.height = 203;
shirtList.push(_local1);
gameSprite.addChild(_local1);
_local2 = new mcShirt2();
_local2.x = _local1.x;
_local2.y = _local1.y;
_local2.width = _local1.width;
_local2.height = _local1.height;
shirtList.push(_local2);
gameSprite.addChild(_local2);
_local3 = new mcShirt3();
_local3.x = _local1.x;
_local3.y = _local1.y;
_local3.width = _local1.width;
_local3.height = _local1.height;
shirtList.push(_local3);
gameSprite.addChild(_local3);
_local4 = new mcShirt4();
_local4.x = _local1.x;
_local4.y = _local1.y;
_local4.width = _local1.width;
_local4.height = _local1.height;
shirtList.push(_local4);
gameSprite.addChild(_local4);
_local5 = new mcShirt5();
_local5.x = _local1.x;
_local5.y = _local1.y;
_local5.width = _local1.width;
_local5.height = _local1.height;
shirtList.push(_local5);
gameSprite.addChild(_local5);
_local6 = new mcShirt5();
_local6.x = _local1.x;
_local6.y = _local1.y;
_local6.width = _local1.width;
_local6.height = _local1.height;
shirtList.push(_local6);
gameSprite.addChild(_local6);
_local7 = 0;
while (_local7 < shirtList.length) {
shirtList[_local7].visible = false;
_local7++;
};
shirtIndex = -1;
shirtButton.gotoAndStop(1);
shirtButton.addEventListener(MouseEvent.MOUSE_DOWN, ShirtClick);
}
public function InitDoll(){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:int;
bodyIndex = 0;
_local1 = new mcBody1();
_local1.x = 134;
_local1.y = 26;
_local1.width = 367;
_local1.height = 519;
bodyList.push(_local1);
gameSprite.addChild(_local1);
_local2 = new mcBody2();
_local2.x = _local1.x;
_local2.y = _local1.y;
_local2.width = _local1.width;
_local2.height = _local1.height;
bodyList.push(_local2);
gameSprite.addChild(_local2);
_local3 = new mcBody3();
_local3.x = _local1.x;
_local3.y = _local1.y;
_local3.width = _local1.width;
_local3.height = _local1.height;
bodyList.push(_local3);
gameSprite.addChild(_local3);
_local4 = new mcBody4();
_local4.x = _local1.x;
_local4.y = _local1.y;
_local4.width = _local1.width;
_local4.height = _local1.height;
bodyList.push(_local4);
gameSprite.addChild(_local4);
_local5 = new mcBody5();
_local5.x = _local1.x;
_local5.y = _local1.y;
_local5.width = _local1.width;
_local5.height = _local1.height;
bodyList.push(_local5);
gameSprite.addChild(_local5);
_local6 = 0;
while (_local6 < bodyList.length) {
bodyList[_local6].visible = false;
_local6++;
};
bodyList[bodyIndex].visible = true;
bodyButton.gotoAndStop(1);
bodyButton.addEventListener(MouseEvent.MOUSE_DOWN, BodyClick);
}
public function MoreGamesClick(_arg1:MouseEvent){
channelButton = buttonSound.play(0, 1);
moregamesButton.gotoAndStop(3);
navigateToURL(new URLRequest("http://www.dressupwho.com/"), "_blank");
}
public function HoldingClick(_arg1:MouseEvent){
var _local2:int;
var _local3:Boolean;
channelButton = buttonSound.play(0, 1);
holdingButton.gotoAndStop(3);
_local2 = 0;
while (_local2 < holdingList.length) {
holdingList[_local2].visible = false;
_local2++;
};
holdingIndex++;
if (holdingIndex > (holdingList.length - 1)){
holdingIndex = 0;
};
_local3 = true;
if (holdingIndex == (holdingList.length - 1)){
_local3 = false;
};
holdingList[holdingIndex].visible = _local3;
}
public function HairClick(_arg1:MouseEvent){
var _local2:int;
channelButton = buttonSound.play(0, 1);
hairButton.gotoAndStop(3);
_local2 = 0;
while (_local2 < hairList.length) {
hairList[_local2].visible = false;
_local2++;
};
hairIndex++;
if (hairIndex > (hairList.length - 1)){
hairIndex = 0;
};
hairList[hairIndex].visible = true;
}
public function PlayAgainClick(_arg1:MouseEvent){
Clear();
channelButton = buttonSound.play(0, 1);
playagainButton.gotoAndStop(3);
bDone = false;
ShowObjects(true);
printButton.visible = false;
moregamesButton.visible = false;
playagainButton.visible = false;
}
public function StageDown(_arg1:MouseEvent){
stageClick = true;
}
public function BodyClick(_arg1:MouseEvent){
var _local2:int;
channelButton = buttonSound.play(0, 1);
bodyButton.gotoAndStop(3);
_local2 = 0;
while (_local2 < bodyList.length) {
bodyList[_local2].visible = false;
_local2++;
};
bodyIndex++;
if (bodyIndex > (bodyList.length - 1)){
bodyIndex = 0;
};
bodyList[bodyIndex].visible = true;
}
public function DoneClick(_arg1:MouseEvent){
channelButton = buttonSound.play(0, 1);
doneButton.gotoAndStop(3);
bDone = true;
ShowObjects(false);
printButton.visible = true;
moregamesButton.visible = true;
playagainButton.visible = true;
}
public function PrintClick(_arg1:MouseEvent){
var _local2:PrintJob;
channelButton = buttonSound.play(0, 1);
printButton.gotoAndStop(3);
_local2 = new PrintJob();
_local2.start();
_local2.addPage(gameSprite, null, null);
_local2.send();
}
public function InitHair(){
var _local1:*;
var _local2:int;
var _local3:*;
_local1 = new mcHair1();
_local1.x = 240;
_local1.y = 20;
_local1.width = 122;
_local1.height = 232;
hairList.push(_local1);
gameSprite.addChild(_local1);
_local2 = 1;
while (_local2 < 42) {
if (_local2 == 1){
_local3 = new mcHair2();
};
if (_local2 == 2){
_local3 = new mcHair3();
};
if (_local2 == 3){
_local3 = new mcHair4();
};
if (_local2 == 4){
_local3 = new mcHair5();
};
if (_local2 == 5){
_local3 = new mcHair6();
};
if (_local2 == 6){
_local3 = new mcHair7();
};
if (_local2 == 7){
_local3 = new mcHair8();
};
if (_local2 == 8){
_local3 = new mcHair9();
};
if (_local2 == 9){
_local3 = new mcHair10();
};
if (_local2 == 10){
_local3 = new mcHair11();
};
if (_local2 == 11){
_local3 = new mcHair12();
};
if (_local2 == 12){
_local3 = new mcHair13();
};
if (_local2 == 13){
_local3 = new mcHair14();
};
if (_local2 == 14){
_local3 = new mcHair15();
};
if (_local2 == 15){
_local3 = new mcHair16();
};
if (_local2 == 16){
_local3 = new mcHair17();
};
if (_local2 == 17){
_local3 = new mcHair18();
};
if (_local2 == 18){
_local3 = new mcHair19();
};
if (_local2 == 19){
_local3 = new mcHair20();
};
if (_local2 == 20){
_local3 = new mcHair21();
};
if (_local2 == 21){
_local3 = new mcHair22();
};
if (_local2 == 22){
_local3 = new mcHair23();
};
if (_local2 == 23){
_local3 = new mcHair24();
};
if (_local2 == 24){
_local3 = new mcHair25();
};
if (_local2 == 25){
_local3 = new mcHair26();
};
if (_local2 == 26){
_local3 = new mcHair27();
};
if (_local2 == 27){
_local3 = new mcHair28();
};
if (_local2 == 28){
_local3 = new mcHair29();
};
if (_local2 == 29){
_local3 = new mcHair30();
};
if (_local2 == 30){
_local3 = new mcHair31();
};
if (_local2 == 31){
_local3 = new mcHair32();
};
if (_local2 == 32){
_local3 = new mcHair33();
};
if (_local2 == 33){
_local3 = new mcHair34();
};
if (_local2 == 34){
_local3 = new mcHair35();
};
if (_local2 == 35){
_local3 = new mcHair36();
};
if (_local2 == 36){
_local3 = new mcHair37();
};
if (_local2 == 37){
_local3 = new mcHair38();
};
if (_local2 == 38){
_local3 = new mcHair39();
};
if (_local2 == 39){
_local3 = new mcHair40();
};
if (_local2 == 40){
_local3 = new mcHair41();
};
if (_local2 == 41){
_local3 = new mcHair42();
};
_local3.x = _local1.x;
_local3.y = _local1.y;
_local3.width = _local1.width;
_local3.height = _local1.height;
hairList.push(_local3);
gameSprite.addChild(_local3);
_local2++;
};
_local2 = 0;
while (_local2 < hairList.length) {
hairList[_local2].visible = false;
_local2++;
};
hairList[0].visible = true;
hairIndex = 0;
hairButton.gotoAndStop(1);
hairButton.addEventListener(MouseEvent.MOUSE_DOWN, HairClick);
}
public function ShowObjects(_arg1:Boolean){
doneButton.visible = _arg1;
musicButton.visible = _arg1;
randomButton.visible = _arg1;
clearButton.visible = _arg1;
bodyButton.visible = _arg1;
eyeButton.visible = _arg1;
hairButton.visible = _arg1;
hatButton.visible = _arg1;
shirtButton.visible = _arg1;
shoeButton.visible = _arg1;
holdingButton.visible = _arg1;
jacketButton.visible = _arg1;
necklaceButton.visible = _arg1;
bottomButton.visible = _arg1;
}
public function ShoeClick(_arg1:MouseEvent){
var _local2:int;
var _local3:Boolean;
channelButton = buttonSound.play(0, 1);
shoeButton.gotoAndStop(3);
_local2 = 0;
while (_local2 < shoeList.length) {
shoeList[_local2].visible = false;
_local2++;
};
shoeIndex++;
if (shoeIndex > (shoeList.length - 1)){
shoeIndex = 0;
};
_local3 = true;
if (shoeIndex == (shoeList.length - 1)){
_local3 = false;
};
shoeList[shoeIndex].visible = _local3;
}
public function JacketClick(_arg1:MouseEvent){
var _local2:int;
var _local3:Boolean;
channelButton = buttonSound.play(0, 1);
jacketButton.gotoAndStop(3);
_local2 = 0;
while (_local2 < jacketList.length) {
jacketList[_local2].visible = false;
_local2++;
};
jacketIndex++;
if (jacketIndex > (jacketList.length - 1)){
jacketIndex = 0;
};
_local3 = true;
if (jacketIndex == (jacketList.length - 1)){
_local3 = false;
};
jacketList[jacketIndex].visible = _local3;
}
public function ShirtClick(_arg1:MouseEvent){
var _local2:int;
channelButton = buttonSound.play(0, 1);
shirtButton.gotoAndStop(3);
_local2 = 0;
while (_local2 < shirtList.length) {
shirtList[_local2].visible = false;
_local2++;
};
shirtIndex++;
if (shirtIndex > (shirtList.length - 1)){
shirtIndex = 0;
};
shirtList[shirtIndex].visible = true;
}
public function ClearClick(_arg1:MouseEvent){
clearButton.gotoAndStop(3);
channelButton = buttonSound.play(0, 1);
Clear();
}
public function InitHolding(){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:int;
_local1 = new mcHolding1();
_local1.x = 132;
_local1.y = 239;
_local1.width = 0xFF;
_local1.height = 140;
holdingList.push(_local1);
gameSprite.addChild(_local1);
_local2 = new mcHolding2();
_local2.x = _local1.x;
_local2.y = _local1.y;
_local2.width = _local1.width;
_local2.height = _local1.height;
holdingList.push(_local2);
gameSprite.addChild(_local2);
_local3 = new mcHolding3();
_local3.x = _local1.x;
_local3.y = _local1.y;
_local3.width = _local1.width;
_local3.height = _local1.height;
holdingList.push(_local3);
gameSprite.addChild(_local3);
_local4 = new mcHolding4();
_local4.x = _local1.x;
_local4.y = _local1.y;
_local4.width = _local1.width;
_local4.height = _local1.height;
holdingList.push(_local4);
gameSprite.addChild(_local4);
_local5 = new mcHolding5();
_local5.x = _local1.x;
_local5.y = _local1.y;
_local5.width = _local1.width;
_local5.height = _local1.height;
holdingList.push(_local5);
gameSprite.addChild(_local5);
_local6 = new mcHolding6();
_local6.x = _local1.x;
_local6.y = _local1.y;
_local6.width = _local1.width;
_local6.height = _local1.height;
holdingList.push(_local6);
gameSprite.addChild(_local6);
_local7 = new mcHolding7();
_local7.x = _local1.x;
_local7.y = _local1.y;
_local7.width = _local1.width;
_local7.height = _local1.height;
holdingList.push(_local7);
gameSprite.addChild(_local7);
_local8 = 0;
while (_local8 < holdingList.length) {
holdingList[_local8].visible = false;
_local8++;
};
holdingIndex = -1;
holdingButton.gotoAndStop(1);
holdingButton.addEventListener(MouseEvent.MOUSE_DOWN, HoldingClick);
}
public function SmallLogoClick(_arg1:MouseEvent){
navigateToURL(new URLRequest("http://www.dressupwho.com/"), "_blank");
}
public function Randomize(){
var _local1:int;
_local1 = 0;
_local1 = 0;
while (_local1 < bodyList.length) {
bodyList[_local1].visible = false;
_local1++;
};
_local1 = 0;
while (_local1 < eyeList.length) {
eyeList[_local1].visible = false;
_local1++;
};
_local1 = 0;
while (_local1 < shoeList.length) {
shoeList[_local1].visible = false;
_local1++;
};
_local1 = 0;
while (_local1 < shirtList.length) {
shirtList[_local1].visible = false;
_local1++;
};
_local1 = 0;
while (_local1 < jacketList.length) {
jacketList[_local1].visible = false;
_local1++;
};
_local1 = 0;
while (_local1 < necklaceList.length) {
necklaceList[_local1].visible = false;
_local1++;
};
_local1 = 0;
while (_local1 < holdingList.length) {
holdingList[_local1].visible = false;
_local1++;
};
_local1 = 0;
while (_local1 < hairList.length) {
hairList[_local1].visible = false;
_local1++;
};
_local1 = 0;
while (_local1 < hatList.length) {
hatList[_local1].visible = false;
_local1++;
};
_local1 = 0;
while (_local1 < bottomList.length) {
bottomList[_local1].visible = false;
_local1++;
};
bodyIndex = Math.floor((Math.random() * bodyList.length));
bodyList[bodyIndex].visible = true;
eyeIndex = Math.floor((Math.random() * eyeList.length));
eyeList[eyeIndex].visible = true;
shoeIndex = Math.floor((Math.random() * shoeList.length));
shoeList[shoeIndex].visible = true;
shirtIndex = Math.floor((Math.random() * shirtList.length));
shirtList[shirtIndex].visible = true;
jacketIndex = Math.floor((Math.random() * jacketList.length));
jacketList[jacketIndex].visible = true;
necklaceIndex = Math.floor((Math.random() * necklaceList.length));
necklaceList[necklaceIndex].visible = true;
holdingIndex = Math.floor((Math.random() * holdingList.length));
holdingList[holdingIndex].visible = true;
hairIndex = Math.floor((Math.random() * hairList.length));
hairList[hairIndex].visible = true;
hatIndex = Math.floor((Math.random() * hatList.length));
hatList[hatIndex].visible = true;
bottomIndex = Math.floor((Math.random() * bottomList.length));
bottomList[bottomIndex].visible = true;
if (hatIndex == (hatList.length - 1)){
hatList[hatIndex].visible = false;
};
if (holdingIndex == (holdingList.length - 1)){
holdingList[holdingIndex].visible = false;
};
if (necklaceIndex == (necklaceList.length - 1)){
necklaceList[necklaceIndex].visible = false;
};
if (shoeIndex == (shoeList.length - 1)){
shoeList[shoeIndex].visible = false;
};
if (jacketIndex == (jacketList.length - 1)){
jacketList[jacketIndex].visible = false;
};
}
public function NecklaceClick(_arg1:MouseEvent){
var _local2:int;
var _local3:Boolean;
channelButton = buttonSound.play(0, 1);
necklaceButton.gotoAndStop(3);
_local2 = 0;
while (_local2 < necklaceList.length) {
necklaceList[_local2].visible = false;
_local2++;
};
necklaceIndex++;
if (necklaceIndex > (necklaceList.length - 1)){
necklaceIndex = 0;
};
_local3 = true;
if (necklaceIndex == (necklaceList.length - 1)){
_local3 = false;
};
necklaceList[necklaceIndex].visible = _local3;
}
public function StageOut(_arg1:MouseEvent){
stageClick = false;
}
public function InitShoes(){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:int;
_local1 = new mcShoes1();
_local1.x = 296;
_local1.y = 341;
_local1.width = 175;
_local1.height = 203;
shoeList.push(_local1);
gameSprite.addChild(_local1);
_local2 = new mcShoes2();
_local2.x = _local1.x;
_local2.y = _local1.y;
_local2.width = _local1.width;
_local2.height = _local1.height;
shoeList.push(_local2);
gameSprite.addChild(_local2);
_local3 = new mcShoes3();
_local3.x = _local1.x;
_local3.y = _local1.y;
_local3.width = _local1.width;
_local3.height = _local1.height;
shoeList.push(_local3);
gameSprite.addChild(_local3);
_local4 = new mcShoes4();
_local4.x = _local1.x;
_local4.y = _local1.y;
_local4.width = _local1.width;
_local4.height = _local1.height;
shoeList.push(_local4);
gameSprite.addChild(_local4);
_local5 = new mcShoes5();
_local5.x = _local1.x;
_local5.y = _local1.y;
_local5.width = _local1.width;
_local5.height = _local1.height;
shoeList.push(_local5);
gameSprite.addChild(_local5);
_local6 = new mcShoes6();
_local6.x = _local1.x;
_local6.y = _local1.y;
_local6.width = _local1.width;
_local6.height = _local1.height;
shoeList.push(_local6);
gameSprite.addChild(_local6);
_local7 = 0;
while (_local7 < shoeList.length) {
shoeList[_local7].visible = false;
_local7++;
};
shoeIndex = -1;
shoeButton.gotoAndStop(1);
shoeButton.addEventListener(MouseEvent.MOUSE_DOWN, ShoeClick);
}
public function InitEyes(){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:int;
eyeIndex = 0;
_local1 = new mcEye1();
_local1.x = 289;
_local1.y = 73;
_local1.width = 31;
_local1.height = 13;
eyeList.push(_local1);
gameSprite.addChild(_local1);
_local2 = new mcEye2();
_local2.x = _local1.x;
_local2.y = _local1.y;
_local2.width = _local1.width;
_local2.height = _local1.height;
eyeList.push(_local2);
gameSprite.addChild(_local2);
_local3 = new mcEye3();
_local3.x = _local1.x;
_local3.y = _local1.y;
_local3.width = _local1.width;
_local3.height = _local1.height;
eyeList.push(_local3);
gameSprite.addChild(_local3);
_local4 = new mcEye4();
_local4.x = _local1.x;
_local4.y = _local1.y;
_local4.width = _local1.width;
_local4.height = _local1.height;
eyeList.push(_local4);
gameSprite.addChild(_local4);
_local5 = new mcEye5();
_local5.x = _local1.x;
_local5.y = _local1.y;
_local5.width = _local1.width;
_local5.height = _local1.height;
eyeList.push(_local5);
gameSprite.addChild(_local5);
_local6 = new mcEye6();
_local6.x = _local1.x;
_local6.y = _local1.y;
_local6.width = _local1.width;
_local6.height = _local1.height;
eyeList.push(_local6);
gameSprite.addChild(_local6);
_local7 = 0;
while (_local7 < eyeList.length) {
eyeList[_local7].visible = false;
_local7++;
};
eyeList[eyeIndex].visible = true;
eyeButton.gotoAndStop(1);
eyeButton.addEventListener(MouseEvent.MOUSE_DOWN, EyeClick);
}
public function GameLoop(_arg1:TimerEvent){
if (deletedLogo){
if (!deletedLayer){
if (layer.alpha > 0){
layer.alpha = (layer.alpha - 0.015);
} else {
gameSprite.removeChild(layer);
deletedLayer = true;
};
} else {
if (!stageClick){
if (!bDone){
if (bodyButton.hitTestPoint(mouseX, mouseY, true)){
bodyButton.gotoAndStop(2);
} else {
bodyButton.gotoAndStop(1);
};
if (eyeButton.hitTestPoint(mouseX, mouseY, true)){
eyeButton.gotoAndStop(2);
} else {
eyeButton.gotoAndStop(1);
};
if (hairButton.hitTestPoint(mouseX, mouseY, true)){
hairButton.gotoAndStop(2);
} else {
hairButton.gotoAndStop(1);
};
if (hatButton.hitTestPoint(mouseX, mouseY, true)){
hatButton.gotoAndStop(2);
} else {
hatButton.gotoAndStop(1);
};
if (jacketButton.hitTestPoint(mouseX, mouseY, true)){
jacketButton.gotoAndStop(2);
} else {
jacketButton.gotoAndStop(1);
};
if (necklaceButton.hitTestPoint(mouseX, mouseY, true)){
necklaceButton.gotoAndStop(2);
} else {
necklaceButton.gotoAndStop(1);
};
if (shirtButton.hitTestPoint(mouseX, mouseY, true)){
shirtButton.gotoAndStop(2);
} else {
shirtButton.gotoAndStop(1);
};
if (bottomButton.hitTestPoint(mouseX, mouseY, true)){
bottomButton.gotoAndStop(2);
} else {
bottomButton.gotoAndStop(1);
};
if (shoeButton.hitTestPoint(mouseX, mouseY, true)){
shoeButton.gotoAndStop(2);
} else {
shoeButton.gotoAndStop(1);
};
if (holdingButton.hitTestPoint(mouseX, mouseY, true)){
holdingButton.gotoAndStop(2);
} else {
holdingButton.gotoAndStop(1);
};
if (clearButton.hitTestPoint(mouseX, mouseY, true)){
clearButton.gotoAndStop(2);
} else {
clearButton.gotoAndStop(1);
};
if (randomButton.hitTestPoint(mouseX, mouseY, true)){
randomButton.gotoAndStop(2);
} else {
randomButton.gotoAndStop(1);
};
if (doneButton.hitTestPoint(mouseX, mouseY, true)){
doneButton.gotoAndStop(2);
} else {
doneButton.gotoAndStop(1);
};
} else {
if (printButton.hitTestPoint(mouseX, mouseY, true)){
printButton.gotoAndStop(2);
} else {
printButton.gotoAndStop(1);
};
if (moregamesButton.hitTestPoint(mouseX, mouseY, true)){
moregamesButton.gotoAndStop(2);
} else {
moregamesButton.gotoAndStop(1);
};
if (playagainButton.hitTestPoint(mouseX, mouseY, true)){
playagainButton.gotoAndStop(2);
} else {
playagainButton.gotoAndStop(1);
};
};
};
};
} else {
logo.gotoAndStop(logo.curFrame);
if (logo.curFrame < 295){
logo.curFrame++;
} else {
deletedLogo = true;
gameSprite.removeChild(logoBG);
gameSprite.removeChild(logo);
InitDoll();
InitEyes();
blink.x = 283;
blink.y = 69;
gameSprite.addChild(blink);
InitBottoms();
InitShoes();
InitShirts();
InitHolding();
InitJackets();
InitNecklaces();
InitHair();
InitHats();
smallLogoClick.x = 95;
smallLogoClick.y = 503;
smallLogoClick.addEventListener(MouseEvent.MOUSE_DOWN, SmallLogoClick);
gameSprite.addChild(smallLogoClick);
clearButton.gotoAndStop(1);
clearButton.addEventListener(MouseEvent.MOUSE_DOWN, ClearClick);
randomButton.gotoAndStop(1);
randomButton.addEventListener(MouseEvent.MOUSE_DOWN, RandomClick);
musicButton.gotoAndStop(1);
musicButton.addEventListener(MouseEvent.MOUSE_DOWN, MusicClick);
doneButton.gotoAndStop(1);
doneButton.addEventListener(MouseEvent.MOUSE_DOWN, DoneClick);
moregamesButton.gotoAndStop(1);
moregamesButton.visible = false;
moregamesButton.addEventListener(MouseEvent.MOUSE_DOWN, MoreGamesClick);
playagainButton.gotoAndStop(1);
playagainButton.visible = false;
playagainButton.addEventListener(MouseEvent.MOUSE_DOWN, PlayAgainClick);
printButton.gotoAndStop(1);
printButton.visible = false;
printButton.addEventListener(MouseEvent.MOUSE_DOWN, PrintClick);
layer.x = 0;
layer.y = 0;
layer.width = 750;
layer.height = 550;
gameSprite.addChild(layer);
deletedLayer = false;
channelMusic = musicSound.play(0, 999999);
};
};
}
public function HatClick(_arg1:MouseEvent){
var _local2:int;
var _local3:Boolean;
channelButton = buttonSound.play(0, 1);
hatButton.gotoAndStop(3);
_local2 = 0;
while (_local2 < hatList.length) {
hatList[_local2].visible = false;
_local2++;
};
hatIndex++;
if (hatIndex > (hatList.length - 1)){
hatIndex = 0;
};
_local3 = false;
if (hatIndex >= 0){
_local3 = true;
};
hatList[hatIndex].visible = _local3;
}
public function EyeClick(_arg1:MouseEvent){
var _local2:int;
channelButton = buttonSound.play(0, 1);
eyeButton.gotoAndStop(3);
_local2 = 0;
while (_local2 < eyeList.length) {
eyeList[_local2].visible = false;
_local2++;
};
eyeIndex++;
if (eyeIndex > (eyeList.length - 1)){
eyeIndex = 0;
};
eyeList[eyeIndex].visible = true;
}
}
}//package