Frame 1
loader.sStatus = 0;
Frame 2
iBytes = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
loader.sStatus = iBytes + "%";
loader._x = Stage.width / 2;
loader._y = Stage.height / 2;
Frame 3
if (iBytes < 100) {
iBytes = iBytes + 2;
gotoAndPlay (2);
} else {
loader.sStatus = "COMPLETE";
gotoAndPlay (4);
}
Frame 4
function SceneDimension() {
StageW = Stage.width;
StageH = Stage.height;
startPointX = StageW;
startPointY = StageH - 10;
scale_w = (StageW / 800) * 100;
scale_h = (StageH / 600) * 100;
speed_w = StageW / 800;
speed_h = StageH / 600;
black_skin._xscale = StageW;
black_skin._yscale = StageH;
if (scale_w > scale_h) {
mcInstructions._xscale = scale_h;
mcInstructions._yscale = scale_h;
} else if (scale_w <= scale_h) {
mcInstructions._xscale = scale_w;
mcInstructions._yscale = scale_w;
}
mcInstructions._x = (StageW / 2) - (mcInstructions._width / 2);
mcInstructions._y = (StageH / 2) - (mcInstructions._height / 2);
if (scale_w > scale_h) {
mcCongratulations._xscale = scale_h;
mcCongratulations._yscale = scale_h;
} else if (scale_w <= scale_h) {
mcCongratulations._xscale = scale_w;
mcCongratulations._yscale = scale_w;
}
mcCongratulations._x = (StageW / 2) - (mcCongratulations._width / 2);
mcCongratulations._y = (StageH / 2) - (mcCongratulations._height / 2);
mcDimension.Dimension = (StageW + " x ") + StageH;
mcDimension._y = (StageH - mcDimension._height) - 2;
mcDimension._x = (StageW / 2) - (mcDimension._width / 2);
mcDimension._visible = true;
startPointDogX = _x;
DogScale = scale_h;
startPointBeeX = _x;
BeeScale = scale_h;
Monkey._y = startPointY;
Monkey._x = startPointX / 2;
Monkey._xscale = scale_h;
Monkey._yscale = scale_h;
MonkeyScale = scale_h;
if (Stage.height <= 400) {
jumpHeight = Math.ceil(StageH / 15);
} else if ((Stage.height >= 601) && (Stage.height <= 800)) {
jumpHeight = Math.ceil(StageH / 25);
} else if ((Stage.height >= 801) && (Stage.height <= 1200)) {
jumpHeight = Math.ceil(StageH / 35);
} else if ((Stage.height <= 600) && (Stage.height >= 401)) {
jumpHeight = Math.ceil(StageH / 20);
}
walkSpeed = Math.ceil(StageW / 60);
Energy_Bar._xscale = scale_h * 0.9;
Energy_Bar._yscale = scale_h * 0.9;
Energy_Bar._x = startPointX - (Energy_Bar._width * 0.75);
Energy_Bar._y = Energy_Bar._height / 2;
Foreground._xscale = scale_w;
Foreground._yscale = scale_h;
if (scale_w >= 51) {
mcScore._xscale = 100;
mcScore._yscale = 100;
} else if (scale_w <= 50) {
mcScore._xscale = 50;
mcScore._yscale = 50;
}
mcScore._x = 5;
mcScore._y = timer._y;
if (scale_w >= 51) {
timer._xscale = 100;
timer._yscale = 100;
} else if (scale_w <= 50) {
timer._xscale = 50;
timer._yscale = 50;
}
timer._x = mcScore._width + 5;
landscape.lnk._x = StageW * 0.78;
landscape.lnk._y = StageH / 1.7;
landscape.lnk._xscale = scale_h;
landscape.lnk._yscale = scale_h;
landscape.sky._width = StageW;
landscape.sky._height = StageH;
landscape.moon._x = StageW * 0.8;
landscape.moon._y = (StageH / 4) - 50;
landscape.moon._xscale = scale_h;
landscape.moon._yscale = scale_h;
landscape.cloud_A._x = StageW * 0.75;
landscape.cloud_A._y = StageH / 4;
landscape.cloud_A._xscale = scale_h;
landscape.cloud_A._yscale = scale_h;
landscape.cloud_B._x = StageW * 0.5;
landscape.cloud_B._y = StageH / 10;
landscape.cloud_B._xscale = scale_h;
landscape.cloud_B._yscale = scale_h;
landscape.grass._y = StageH - landscape.grass._height;
landscape.grass._width = StageW;
landscape.grass._height = StageH * 0.25;
landscape.bush._y = StageH - landscape.bush._height;
landscape.bush._width = StageW;
landscape.bush._height = StageH * 0.4;
landscape.frontTrees._width = StageW;
landscape.frontTrees._height = StageH;
landscape.backTrees._width = StageW;
landscape.backTrees._height = StageH;
if (Stage.height < 400) {
var _local2 = new flash.filters.BlurFilter(2, 2, 2);
} else if (Stage.height > 801) {
var _local2 = new flash.filters.BlurFilter(5, 5, 2);
} else if ((Stage.height <= 800) && (Stage.height >= 401)) {
var _local2 = new flash.filters.BlurFilter(4, 4, 2);
}
var _local1 = new Array();
_local1.push(_local2);
landscape.backTrees.filters = _local1;
}
Stage.scaleMode = "noScale";
Stage.align = "TL";
Listenerload = new Object();
Listenerload.onResize = function () {
SceneDimension();
};
Stage.addListener(Listenerload);
Listenerload.onResize();
SceneDimension();
walkSpeed = walkSpeed;
jumpHeight = jumpHeight;
jumpSpeed = walkSpeed;
Points = 0;
hurtMonkey = false;
happyMonkey = false;
happy = false;
jumping = true;
hurt = false;
objectLimit = 10;
speedUp = 1;
speedUpPause = 2;
productionSpeed = 2300;
var numSec = 120;
timer._visible = false;
energy = 100;
Energy_Bar.gotoAndStop(energy);
mcScore._visible = false;
mcCongratulations._visible = false;
black_skin._visible = true;
attachMovie("Monkey", "Monkey", 100002);
Monkey._x = startPointX / 2;
Monkey._y = startPointY;
stop();
Frame 5
function MonkeyPose(direction) {
if ((!hurt) && (!happy)) {
if (direction != alreadyMoving) {
Monkey.gotoAndPlay(direction);
alreadyMoving = direction;
hurtMonkey = false;
happyMonkey = false;
}
} else if (hurt && (!hurtMonkey)) {
Monkey.gotoAndPlay("hurt");
hurtMonkey = true;
} else if (happy && (!happyMonkey)) {
Monkey.gotoAndPlay("happy");
happyMonkey = true;
}
}
function MonkeyHealth(amount) {
if (amount < 0) {
MonkeyPose("hurt");
energy = energy - 2;
} else {
MonkeyPose("happy");
energy = energy + 1;
}
}
function MovingObjects() {
var _local2 = 0;
while (_local2 < objectLimit) {
if (this["Object" + _local2]._y < (StageH + 50)) {
this["Object" + _local2]._y = this["Object" + _local2]._y + (this["Object" + _local2].fallSpeed + speedUp);
if (Monkey.hitTest(this["Object" + _local2]._x, this["Object" + _local2]._y, true)) {
if (this["Object" + _local2].pointsWorth > 0) {
addThisAmount = this["Object" + _local2].pointsWorth;
Points = Points + addThisAmount;
MonkeyHealth(1);
this["Object" + _local2].doActions();
} else {
addThisAmount = this["Object" + _local2].pointsWorth;
Points = Points + addThisAmount;
MonkeyHealth(-1);
}
this["Object" + _local2].removeMovieClip();
}
} else {
this["Object" + _local2].removeMovieClip();
}
_local2++;
}
if (speedUpPauseCheck < getTimer()) {
speedUpPauseCheck = getTimer() + (speedUpPause * 1000);
if (speedUp < 5) {
speedUp = speedUp + 0.5;
productionSpeed = productionSpeed - 25;
}
}
}
function FallingObjects() {
if (getTimer() >= objectDelay) {
produceAnObject = true;
objectDelay = getTimer() + productionSpeed;
}
if (produceAnObject) {
if (objectCounter < (objectLimit - 1)) {
objectCounter++;
} else {
objectCounter = 0;
}
attachMovie("Object", "Object" + objectCounter, objectCounter);
this["Object" + objectCounter]._xscale = scale_h;
this["Object" + objectCounter]._yscale = scale_h;
this["Object" + objectCounter]._x = random(StageW);
this["Object" + objectCounter]._y = -20;
this["Object" + objectCounter].fallSpeed = Math.ceil(((random(100) / 15) + 1) * speed_h);
produceAnObject = false;
}
MovingObjects();
}
function gameOver() {
gotoAndStop ("game_over");
direction = "";
alreadyMoving = "";
hurtMonkey = false;
happyMonkey = false;
happy = false;
jumping = false;
jumpSpeed = 0;
hurt = false;
falling_objects.removeMovieClip();
var _local3 = 200000 /* 0x030D40 */;
while (_local3 <= 200003) {
this["Object" + _local3].removeMovieClip();
_local3++;
}
var _local2 = 0;
while (_local2 < objectLimit) {
this["Object" + _local2].removeMovieClip();
_local2++;
}
timerCountDown = false;
}
stop();
black_skin._visible = false;
timer._visible = true;
var enterTime = getTimer();
var startTime = (getTimer() - enterTime);
timer.onEnterFrame = function () {
var _local2 = getTimer() - enterTime;
second = -Math.floor((_local2 / 1000) - numSec);
minute = Math.floor(second / 60);
secs = String(second % 60);
mins = String(minute % 60);
if (secs.length < 2) {
secs = "0" + secs;
}
if (mins.length < 2) {
mins = "" + mins;
}
elapsedTime = (("TIME: " + mins) + ":") + secs;
if (_local2 >= (startTime + (numSec * 1000))) {
delete this.onEnterFrame;
elapsedTime = "";
gameOver();
}
};
Monkey.gotoAndPlay("between");
Monkey.onEnterFrame = function () {
if (Monkey._x > (Monkey._width / 2)) {
if (Key.isDown(37) && (!Key.isDown(39))) {
Monkey._x = Monkey._x - walkSpeed;
MonkeyPose("left");
Monkey._xscale = MonkeyScale;
Monkey._yscale = MonkeyScale;
}
}
if (Monkey._x < (Stage.width - (Monkey._width / 2))) {
if (Key.isDown(39) && (!Key.isDown(37))) {
Monkey._x = Monkey._x + walkSpeed;
MonkeyPose("right");
Monkey._xscale = -MonkeyScale;
Monkey._yscale = MonkeyScale;
}
}
if (Key.isDown(38) && (!jumping)) {
MonkeyPose("jump");
jumping = true;
Monkey._yscale = MonkeyScale;
} else if (jumping) {
jumpSpeed = jumpSpeed - 2;
Monkey._y = Monkey._y - jumpSpeed;
if (Monkey._y > startPointY) {
Monkey._y = startPointY;
jumping = false;
jumpSpeed = jumpHeight;
}
}
if (((((!Key.isDown(38)) && (!Key.isDown(39))) && (!Key.isDown(37))) && (!jumping)) && (Monkey._y <= startPointY)) {
MonkeyPose("idle");
Monkey._y = startPointY;
Monkey._yscale = MonkeyScale;
}
if ((((Key.isDown(40) && (!Key.isDown(38))) && (!Key.isDown(39))) && (!Key.isDown(37))) && (!jumping)) {
MonkeyPose("down");
Monkey._yscale = MonkeyScale;
}
};
dogs = function () {
this.speedX = Math.round(Math.random() * 8) * speed_w;
this.onEnterFrame = function () {
this._xscale = DogScale;
this._yscale = DogScale;
this.highX = StageW;
this.highY = StageH - (StageH * 0.085);
if (this._x < (startPointDogX - this._width)) {
this.speedX = Math.round(Math.random() * 4) * speed_w;
this.gotoAndStop("right");
} else if (this._x > (this.highX + this._width)) {
this.speedX = (-Math.round(Math.random() * 4)) * speed_w;
this.gotoAndStop("left");
}
this._x = this._x + this.speedX;
this._y = this.highY + random(2);
if (this.speedX == 0) {
this.speedX = this.speedX + 1;
}
if (Monkey.hitTest(this._x, this._y, true)) {
MonkeyHealth(-1);
this.dog_move.gotoAndPlay("bite");
}
};
};
dogs.prototype = new MovieClip();
dogOnScene = 2;
dogNumber = 0;
while (dogNumber < dogOnScene) {
dog_container.attachMovie("dog", "dog_" + dogNumber, 1000 + dogNumber);
dogs.apply(dog_container["dog_" + dogNumber]);
dogNumber++;
}
bees = function () {
this.speedX = Math.floor(Math.random() * 12) * speed_w;
this.onEnterFrame = function () {
this._xscale = BeeScale;
this._yscale = BeeScale;
this.highX = StageW;
this.highY = StageH - (StageH * 0.2);
if (this._x < (startPointBeeX - this._width)) {
this.speedX = Math.floor(Math.random() * 12) * speed_w;
this.gotoAndStop("right");
} else if (this._x > (this.highX + this._width)) {
this.speedX = (-Math.floor(Math.random() * 12)) * speed_w;
this.gotoAndStop("left");
}
this._x = this._x + this.speedX;
this._y = this.highY;
if (this.speedX == 0) {
this.speedX = this.speedX + 12;
}
if (Monkey.hitTest(this._x, this._y, true)) {
MonkeyHealth(-1);
this.bee_move.gotoAndPlay("sting");
}
};
};
bees.prototype = new MovieClip();
BeeOnScene = 1;
beeNumber = 0;
while (beeNumber < BeeOnScene) {
bee_container.attachMovie("bee", "bee_" + beeNumber, 1001 + beeNumber);
bees.apply(bee_container["bee_" + beeNumber]);
beeNumber++;
}
attachMovie("falling_objects", "falling_objects", 200001);
falling_objects.onEnterFrame = function () {
FallingObjects();
};
Foreground.onEnterFrame = function () {
this.swapDepths(_root.getNextHighestDepth());
};
Energy_Bar.onEnterFrame = function () {
this.gotoAndStop(energy);
if (energy < 0) {
gameOver();
}
};
mcScore._visible = true;
Frame 6
stop();
mcScore._visible = false;
mcCongratulations._visible = true;
black_skin._visible = true;
timer._visible = false;
ExtraPoints = 1000;
Energy_Bar.onEnterFrame = function () {
if (this._currentframe != 1) {
this._currentframe = this.gotoAndStop(this._currentframe - 1);
Points = Points + ExtraPoints;
} else {
stop();
}
};
Symbol 13 MovieClip Frame 1
stop();
Symbol 14 MovieClip [bee] Frame 1
stop();
Symbol 28 MovieClip Frame 1
stop();
Symbol 29 MovieClip [dog] Frame 1
stop();
Symbol 40 MovieClip [Object] Frame 1
var CurrentFrame = (random(_totalframes) + 1);
if (CurrentFrame == 1) {
CurrentFrame = CurrentFrame + 1;
}
gotoAndStop(CurrentFrame);
Symbol 40 MovieClip [Object] Frame 2
pointsWorth = 450;
stop();
Symbol 40 MovieClip [Object] Frame 3
pointsWorth = -50;
stop();
Symbol 55 MovieClip Frame 1
scale_h = (Stage.height / 600) * 100;
_parent.loader._xscale = scale_h;
_parent.loader._yscale = scale_h;
Symbol 70 Button
on (release) {
getURL ("http://www.ultimatedressup.com", "_blank");
}
Symbol 149 MovieClip Frame 6
stop();
Symbol 159 MovieClip Frame 1
play();
Symbol 159 MovieClip Frame 7
stop();
Symbol 159 MovieClip Frame 8
play();
Symbol 159 MovieClip Frame 13
stop();
Symbol 159 MovieClip Frame 14
play();
Symbol 159 MovieClip Frame 18
stop();
Symbol 159 MovieClip Frame 19
play();
Symbol 159 MovieClip Frame 25
stop();
_parent.alreadyMoving = "between";
this.gotoAndPlay("between");
Symbol 159 MovieClip Frame 26
_parent.hurt = true;
play();
Symbol 159 MovieClip Frame 34
stop();
_parent.hurt = false;
_parent.alreadyMoving = "between";
this.gotoAndPlay("between");
Symbol 159 MovieClip Frame 35
_parent.happy = true;
play();
Symbol 159 MovieClip Frame 46
stop();
_parent.happy = false;
_parent.alreadyMoving = "between";
this.gotoAndPlay("between");
Symbol 159 MovieClip Frame 47
stop();
Symbol 159 MovieClip Frame 53
_parent.happy = false;
_parent.hurt = false;
play();
Symbol 159 MovieClip Frame 75
stop();
_parent.alreadyMoving = "idle";
this.gotoAndPlay("idle");
Symbol 184 MovieClip Frame 1
stop();
Symbol 196 Button
on (release) {
_parent.gotoAndPlay(3);
}
Symbol 208 Button
on (release) {
_parent.nextFrame();
}