Frame 1
stop();
debug = false;
if (debug) {
gotoAndPlay ("Game");
}
preloaderAnimation_mc._x = Stage.width / 2;
preloaderAnimation_mc._y = Stage.height / 2;
preloaderAnimation_mc.pinkBox_mc._width = Stage.width;
preloaderAnimation_mc.pinkBox_mc._height = Stage.height;
preloaderAnimation_mc.mainText_mc._width = (Stage.width / 8) * 7;
preloaderAnimation_mc.mainText_mc._yscale = preloaderAnimation_mc.mainText_mc._xscale;
preloaderAnimation_mc.mainText_mc._x = preloaderAnimation_mc.intro_mc._x;
preloaderAnimation_mc.mainText_mc._y = preloaderAnimation_mc.pinkBox_mc._height / 2;
preloaderAnimation_mc.intro_mc.gotoAndStop(1);
preloaderAnimation_mc.intro_mc._visible = false;
twinkleGenerator_mc._visible = false;
preloaderAnimation_mc.progress_mc.gotoAndStop(1);
var _percent;
var _total;
var _loaded;
var _PLAY = 0;
rectMask_mc._height = 1;
this.onEnterFrame = function () {
var _local3 = this.getBytesLoaded();
var _local4 = this.getBytesTotal();
var _local5 = Math.round((_local3 / _local4) * 100);
rectMask_mc._yscale = _local5;
if (_local3 >= _local4) {
_root.preloader.chibi_mc.gotoAndStop(2);
delete this.onEnterFrame;
}
};
Instance of Symbol 28 MovieClip in Frame 1
on (press) {
getURL ("http://www.girlgames.com", "_blank", "GET");
}
Frame 5
stop();
Instance of Symbol 208 MovieClip "bblogo" in Frame 5
on (rollOver) {
bbtext.gotoAndStop(2);
}
on (rollOut) {
bbtext.gotoAndStop(1);
}
on (press) {
getURL ("http://www.bbdressup.com", "_blank", "GET");
}
Instance of Symbol 208 MovieClip "bbmare" in Frame 5
on (rollOver) {
bbtext.gotoAndStop(2);
}
on (rollOut) {
bbtext.gotoAndStop(1);
}
on (press) {
getURL ("http://www.bbdressup.com", "_blank", "GET");
}
Symbol 3 MovieClip [MC_twinkle] Frame 1
var _speedX = ((Math.random() * 4) - 2);
var _speedY = 0;
var _rotate = 0;
this._x = (_xmouse + (Math.random() * 40)) - 20;
this._y = (_ymouse + (Math.random() * 40)) - 20;
this._xscale = (this._yscale = (Math.random() * 80) + 10);
this.onEnterFrame = function () {
this._x = this._x + _speedX;
this._y = this._y - _speedY;
_speedY = _speedY + 0.3;
this._alpha = this._alpha - (Math.random() * 5);
this._rotation = this._rotation - _rotate;
if (_alpha <= 0) {
this.removeMovieClip();
}
};
Symbol 6 MovieClip [animatedSparkle] Frame 1
sparkle._alpha = 0;
decay = 0.03;
if (fallspeed == null) {
fallspeed = (Math.random() * 1.5) + 0.5;
}
if (totalDecay == null) {
totalDecay = 1;
} else if (totalDecay <= 0) {
stop();
} else {
sparkle._y = sparkle._y + fallspeed;
sparkle._rotation = 180 - (Math.random() * 360);
sparkle._yscale = totalDecay * ((Math.random() * 20) + 100);
sparkle._xscale = totalDecay * (sparkle._yscale / ((Math.random() * 1) + 1));
alpha1 = (Math.random() * 100) + 70;
alpha2 = (Math.random() * 80) + 50;
totalDecay = totalDecay - decay;
if (alphacheck == 1) {
alphacheck = 2;
sparkle._alpha = totalDecay * alpha1;
} else {
alphacheck = 1;
sparkle._alpha = totalDecay * alpha2;
}
}
Symbol 6 MovieClip [animatedSparkle] Frame 2
gotoAndPlay (1);
Symbol 31 MovieClip Frame 1
var _speedX = (Math.ceil(Math.random() * 3) + 3);
var _speedY = (Math.ceil(Math.random() * 3) + 3);
_yscale = (Math.ceil(Math.random() * 60) + 60);
_xscale = (Math.ceil(Math.random() * 60) + 60);
onEnterFrame = function () {
if (_x > (Stage.width + _width)) {
_x = (-1 * _width);
_speedX = (_speedY = Math.ceil(Math.random() * 3) + 3);
_yscale = (Math.ceil(Math.random() * 60) + 60);
_xscale = (Math.ceil(Math.random() * 60) + 60);
} else {
_x = (_x + _speedX);
}
if (_y > (Stage.height + _height)) {
_y = (-1 * _height);
_speedX = (_speedY = Math.ceil(Math.random() * 3) + 3);
_yscale = (Math.ceil(Math.random() * 60) + 60);
_xscale = (Math.ceil(Math.random() * 60) + 60);
} else {
_y = (_y + _speedY);
}
};
Symbol 39 MovieClip Frame 1
stop();
Symbol 39 MovieClip Frame 2
stop();
Symbol 61 MovieClip Frame 20
stop();
Symbol 64 MovieClip Frame 1
stop();
Instance of Symbol 63 MovieClip "invisibutton" in Symbol 64 MovieClip Frame 2
on (press) {
_root.gotoAndStop("Game");
}
Instance of Symbol 39 MovieClip in Symbol 65 MovieClip Frame 1
on (press) {
getURL ("http://www.bbdressup.com", "_blank", "GET");
}
Symbol 72 MovieClip Frame 1
stop();
Symbol 72 MovieClip Frame 2
stop();
Symbol 74 Button
on (release) {
_volumeSwitch = _volumeSwitch * -1;
if (_volumeSwitch == 1) {
Music.setVolume(100);
muteStates_mc.gotoAndStop(1);
} else {
Music.setVolume(0);
muteStates_mc.gotoAndStop(2);
}
}
Symbol 79 MovieClip Frame 1
stop();
Symbol 79 MovieClip Frame 2
stop();
Instance of Symbol 80 MovieClip in Symbol 101 MovieClip Frame 1
on (press) {
_root.game.disableCategories();
_root.game.status = "done";
dn.gotoAndStop(1);
}
on (rollOver) {
dn.gotoAndStop(2);
}
on (rollOut) {
dn.gotoAndStop(1);
}
Instance of Symbol 83 MovieClip in Symbol 101 MovieClip Frame 1
on (press) {
_root.game.disableCategories();
_root.game.enableCategory("hair");
}
Instance of Symbol 86 MovieClip in Symbol 101 MovieClip Frame 1
on (press) {
_root.game.disableCategories();
_root.game.enableCategory("top");
}
Instance of Symbol 91 MovieClip in Symbol 101 MovieClip Frame 1
on (press) {
_root.game.disableCategories();
_root.game.enableCategory("bottom");
}
Instance of Symbol 94 MovieClip in Symbol 101 MovieClip Frame 1
on (press) {
_root.game.disableCategories();
_root.game.enableCategory("dress");
}
Instance of Symbol 97 MovieClip in Symbol 101 MovieClip Frame 1
on (press) {
_root.game.disableCategories();
_root.game.enableCategory("shoes");
}
Instance of Symbol 100 MovieClip in Symbol 101 MovieClip Frame 1
on (press) {
_root.game.disableCategories();
_root.game.enableCategory("jewels");
_root.game.enableCategory("purse");
_root.game.enableCategory("bouquet");
_root.game.enableCategory("flower");
}
Symbol 105 MovieClip Frame 1
stop();
Symbol 105 MovieClip Frame 2
stop();
Instance of Symbol 105 MovieClip "pa" in Symbol 107 MovieClip Frame 1
on (rollOver) {
pa.gotoAndStop(2);
}
on (rollOut) {
pa.gotoAndStop(1);
}
Symbol 110 MovieClip Frame 1
stop();
Symbol 110 MovieClip Frame 2
stop();
Symbol 205 MovieClip Frame 1
function setIncompatibilities() {
var _local1;
var _local2;
_local1 = 0;
while (_local1 < itemTypes.length) {
incompatibilities[_local1] = new Array();
_local2 = 0;
while (_local2 < itemTypes.length) {
incompatibilities[_local1].push(0);
_local2++;
}
_local1++;
}
_local1 = 0;
while (_local1 < adverseTypes.length) {
type = adverseTypes[_local1][0];
adverseTypes[_local1].splice(0, 1);
setAdverseArray(adverseTypes[_local1]);
while ((adverseTypes[_local1].length > 2) && (type == 0)) {
adverseTypes[_local1].splice(0, 1);
setAdverseArray(adverseTypes[_local1]);
}
_local1++;
}
}
function setAdverseArray(list) {
var _local1;
_local1 = 1;
while (_local1 < list.length) {
setAdverse(list[0], list[_local1]);
_local1++;
}
}
function setAdverse(cat1, cat2) {
incompatibilities[getCategoryIndex(cat1)][getCategoryIndex(cat2)] = 1;
incompatibilities[getCategoryIndex(cat2)][getCategoryIndex(cat1)] = 1;
}
function getCategoryIndex(catName) {
var _local1 = 0;
while (_local1 < itemTypes.length) {
if (itemTypes[_local1].begin == catName) {
return(_local1);
}
_local1++;
}
}
function setActionsOnItems() {
setIncompatibilities();
var _local2 = 0;
while (_local2 < itemTypes.length) {
_root.game[itemTypes[_local2].hot]._alpha = 0;
setActionOnItemList(_local2, itemTypes[_local2].begin, itemTypes[_local2].count, _root.game[itemTypes[_local2].hot]);
_local2++;
}
}
function setActionOnItemList(type, begin, count, hot) {
var _local1 = 0;
while (_local1 < count) {
setActionOnItem(type, begin, _local1, hot);
_local1++;
}
}
function setActionOnItem(category, begin, i, hot) {
itemName = ("item" + begin) + (i + 1);
item = _root.game[itemName];
item.category = category;
item.hot = hot;
item.character = this.character;
item.onCharacter = false;
item.initialX = item._x;
item.initialY = item._y;
item.initialScaleX = item._xscale;
item.initialScaleY = item._yscale;
item.dragging = false;
item.onRollOver = function () {
if (!this.onCharacter) {
this.filters = [filter_shadow];
}
};
item.onRollOut = function () {
this.filters = null;
};
item.onPress = function () {
if (_root.game.itemHolder_mc.getDepth() > this.getDepth()) {
_root.game.itemHolder_mc.swapDepths(this);
}
this.dragging = true;
this.startDrag();
};
item.onRelease = function () {
var _local3;
var _local5;
if (_root.game.itemHolder_mc.getDepth() < this.getDepth()) {
_root.game.itemHolder_mc.swapDepths(this);
}
var _local4 = false;
if (validationCharacter(this)) {
putOnCharacter(this);
_root.game.twinkle();
} else {
if (this.onCharacter) {
_local3 = 0;
while (_local3 < onCharacterItems.length) {
if (onCharacterItems[_local3].hot == this.hot) {
onCharacterItems.splice(_local3, 1);
}
_local3++;
}
}
this.onCharacter = false;
}
this.dragging = false;
this.stopDrag();
};
item.onEnterFrame = function () {
if (!this.dragging) {
if (!this.onCharacter) {
if (Math.abs(this._x - this.initialX) < 1) {
this._x = this.initialX;
} else {
this._x = this._x - ((this._x - this.initialX) / 6);
}
if (Math.abs(this._x - this.initialX) < 1) {
this._y = this.initialY;
} else {
this._y = this._y - ((this._y - this.initialY) / 6);
}
if (this._xscale != this.initialScaleX) {
if (((this._xscale / this.initialScaleX) > 0.98) && ((this._xscale / this.initialScaleX) < 1.02)) {
this._xscale = this.initialScaleX;
} else {
this._xscale = this._xscale - ((this._xscale - this.initialScaleX) / 6);
}
}
if (this._xscale != this.initialScaleX) {
if (((this._xscale / this.initialScaleX) > 0.98) && ((this._xscale / this.initialScaleX) < 1.02)) {
this._yscale = this.initialScaleY;
} else {
this._yscale = this._yscale - ((this._yscale - this.initialScaleY) / 6);
}
}
} else {
if (this.xcom == undefined) {
if (this._x != this.hot._x) {
this._x = this.hot._x;
}
} else if (this._x != (this.xcom + this.character._x)) {
this._x = this.xcom + this.character._x;
}
if (this.ycom == undefined) {
if (this._y != this.hot._y) {
this._y = this.hot._y;
}
} else if (this._y != (this.ycom + this.character._y)) {
this._y = this.ycom + this.character._y;
}
if (this._xscale != 100) {
this._xscale = (this._yscale = 100);
}
}
}
this._visible = itemTypes[this.category].enabled || (this.onCharacter);
};
item._visible = itemTypes[item.category].enabled || (item.onCharacter);
}
function putOnCharacter(item) {
var _local1;
var _local3;
_local1 = 0;
while (_local1 < onCharacterItems.length) {
if (incompatibilities[item.category][onCharacterItems[_local1].category] == 1) {
onCharacterItems[_local1].onCharacter = false;
onCharacterItems.splice(_local1, 1);
_local1--;
}
_local1++;
}
_local1 = 0;
while (_local1 < onCharacterItems.length) {
if (onCharacterItems[_local1].hot == item.hot) {
onCharacterItems[_local1].onCharacter = false;
onCharacterItems[_local1] = item;
_local3 = true;
}
_local1++;
}
if (!_local3) {
onCharacterItems.push(item);
}
item.onCharacter = true;
item.filters = null;
}
function validationCharacter(item) {
return(item.hot.hitTest(item));
}
function disableCategories() {
var _local1 = 0;
while (_local1 < itemTypes.length) {
itemTypes[_local1].enabled = false;
_local1++;
}
}
function disableCategory(catName) {
itemTypes[getCategoryIndex(catName)].enabled = false;
}
function enableCategory(catName) {
itemTypes[getCategoryIndex(catName)].enabled = true;
}
function twinkle() {
if (_root.debug) {
return(undefined);
}
var _local3 = 0;
while (_local3 < 10) {
_root.game.attachMovie("MC_twinkle", "MC_twinkle" + _root.game._particleNum, _root.game.getNextHighestDepth());
_root.game._particleNum++;
_local3++;
}
Twinkle = new Sound(this);
Twinkle.attachSound("twinkle");
if (_volumeSwitch == 1) {
Twinkle.setVolume(50);
} else {
Twinkle.setVolume(0);
}
Twinkle.start(0, 1);
}
function displayXY() {
var _local4 = this.character._x;
cy = this.character._y;
var _local3 = 0;
while (_local3 < itemTypes.length) {
var _local2 = 0;
while (_local2 < itemTypes[_local3].count) {
itemName = ("item" + itemTypes[_local3].begin) + (_local2 + 1);
item = this[itemName];
xtext = ((itemName + ".xcom = ") + (item._x - character._x)) + ";";
trace(xtext);
ytext = ((itemName + ".ycom = ") + (item._y - character._y)) + ";";
trace(ytext);
_local2++;
}
_local3++;
}
}
function compensation() {
itemhair1.xcom = 601.15;
itemhair1.ycom = 59.45;
itemhair2.xcom = 655.4;
itemhair2.ycom = 75.65;
itemhair3.xcom = 614.5;
itemhair3.ycom = 75.85;
itemhair4.xcom = 619;
itemhair4.ycom = 66.55;
itemhair5.xcom = 630.5;
itemhair5.ycom = 76.7;
itemhair6.xcom = 631;
itemhair6.ycom = 73.85;
itemhair7.xcom = 628.75;
itemhair7.ycom = 74.7;
itemtop1.xcom = 613.5;
itemtop1.ycom = 140.6;
itemtop2.xcom = 616.75;
itemtop2.ycom = 158.45;
itemtop3.xcom = 613.5;
itemtop3.ycom = 216.95;
itemtop4.xcom = 586.75;
itemtop4.ycom = 136.3;
itemtop5.xcom = 601;
itemtop5.ycom = 193.45;
itemtop6.xcom = 616.5;
itemtop6.ycom = 219.45;
itemtop7.xcom = 621;
itemtop7.ycom = 158.2;
itemdress1.xcom = 609;
itemdress1.ycom = 179.2;
itemdress2.xcom = 608;
itemdress2.ycom = 211.45;
itemdress3.xcom = 609;
itemdress3.ycom = 178.5;
itemdress4.xcom = 634;
itemdress4.ycom = 212.2;
itemdress5.xcom = 620.5;
itemdress5.ycom = 171.05;
itemdress6.xcom = 616;
itemdress6.ycom = 164.15;
itemdress7.xcom = 610;
itemdress7.ycom = 219.25;
itembottom1.xcom = 611.5;
itembottom1.ycom = 275.6;
itembottom2.xcom = 611.5;
itembottom2.ycom = 274.9;
itembottom3.xcom = 581.5;
itembottom3.ycom = 271.6;
itembottom4.xcom = 625.5;
itembottom4.ycom = 284.95;
itembottom5.xcom = 576.5;
itembottom5.ycom = 250.65;
itembottom6.xcom = 583.75;
itembottom6.ycom = 243.8;
itembottom7.xcom = 612.5;
itembottom7.ycom = 295.1;
itembottom8.xcom = 611.95;
itembottom8.ycom = 278.8;
itemshoes1.xcom = 550.5;
itemshoes1.ycom = 496.1;
itemshoes2.xcom = 550.5;
itemshoes2.ycom = 495.85;
itemshoes3.xcom = 550.5;
itemshoes3.ycom = 496.1;
itemshoes4.xcom = 549.75;
itemshoes4.ycom = 495.85;
itemshoes5.xcom = 550;
itemshoes5.ycom = 495.55;
itemshoes6.xcom = 550;
itemshoes6.ycom = 495.85;
itemshoes7.xcom = 550;
itemshoes7.ycom = 495.85;
itemflower1.xcom = 648.5;
itemflower1.ycom = 85.75;
itemflower2.xcom = 659.85;
itemflower2.ycom = 79.7;
itemjewels1.xcom = 624.6;
itemjewels1.ycom = 141.4;
itemjewels2.xcom = 630.5;
itemjewels2.ycom = 136.75;
itembouquet1.xcom = 657;
itembouquet1.ycom = 314.9;
itempurse1.xcom = 530.5;
itempurse1.ycom = 273.75;
itempurse2.xcom = 689.5;
itempurse2.ycom = 274.25;
}
var filter_shadow = (new flash.filters.DropShadowFilter(5, 45, 0, 0.7, 10, 10, 1, 3, false, false, false));
var _particleNum = 0;
onCharacterItems = new Array();
incompatibilities = new Array();
onEnterFrame = function () {
itemHolder_mc._x = _xmouse;
itemHolder_mc._y = _ymouse;
preloaderAnimation_mc._visible = false;
if (_root.game.status == "playing") {
tab._x = tab._x - (((tab._x - 246) * 2) / _root.game.speed);
endPLAYAGAIN._x = endPLAYAGAIN._x - ((endPLAYAGAIN._x - -280) / _root.game.speed);
endPLAYMORE._x = endPLAYMORE._x - ((endPLAYMORE._x - -280) / _root.game.speed);
_root.bblogo._visible = true;
_root.bbmare._visible = false;
} else {
tab._x = tab._x - (((tab._x - -450) * 2) / _root.game.speed);
endPLAYAGAIN._x = endPLAYAGAIN._x - ((endPLAYAGAIN._x - 100) / _root.game.speed);
endPLAYMORE._x = endPLAYMORE._x - ((endPLAYMORE._x - 100) / _root.game.speed);
_root.bblogo._visible = false;
_root.bbmare._visible = true;
}
};
compensation();
stop();
_root.game.speed = 4;
_root.game.status = "playing";
itemHolder_mc._alpha = 0;
var _volumeSwitch = 1;
itemTypes = new Array();
itemTypes.push({begin:"hair", count:7, enabled:true, hot:"hotHair"});
itemTypes.push({begin:"top", count:7, enabled:false, hot:"hotTop"});
itemTypes.push({begin:"dress", count:7, enabled:false, hot:"hotDress"});
itemTypes.push({begin:"bottom", count:8, enabled:false, hot:"hotBottom"});
itemTypes.push({begin:"shoes", count:7, enabled:false, hot:"hotShoes"});
itemTypes.push({begin:"flower", count:2, enabled:false, hot:"hotFlower"});
itemTypes.push({begin:"jewels", count:2, enabled:false, hot:"hotJewels"});
itemTypes.push({begin:"bouquet", count:1, enabled:false, hot:"hotBouquet"});
itemTypes.push({begin:"purse", count:2, enabled:false, hot:"hotPurse"});
adverseTypes = new Array();
adverseTypes.push(new Array(1, "dress", "bottom", "top"));
setActionsOnItems();
putOnCharacter(itemhair4);
Instance of Symbol 107 MovieClip "endPLAYAGAIN" in Symbol 205 MovieClip Frame 1
on (release) {
_root.game.enableCategory("top");
_root.game.status = "playing";
}
on (rollOver) {
this.pa.gotoAndStop(2);
}
on (rollOut) {
this.pa.gotoAndStop(1);
}
Instance of Symbol 111 MovieClip "endPLAYMORE" in Symbol 205 MovieClip Frame 1
on (press) {
getURL ("http://www.bbdressup.com", "_blank", "GET");
}
on (rollOver) {
this.pmg.gotoAndStop(2);
}
on (rollOut) {
this.pmg.gotoAndStop(1);
}
Symbol 211 MovieClip Frame 1
this.sparkleResource._visible = false;
this.Instructions._visible = false;
var r = 1;
_parent.onMouseMove = function () {
if (i == null) {
i = 0;
}
sparkIt = !(i % r);
if (sparkIt) {
this.attachMovie("animatedSparkle", "spark" + i, this.getNextHighestDepth());
this["spark" + i]._x = this._xmouse - (Math.random() * 15);
this["spark" + i]._y = this._ymouse - ((Math.random() * 10) + 5);
this["spark" + i].blendMode = 13;
}
i++;
};