Frame 1
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = ((fv == 5) ? (getVersion()) : (System.capabilities.version));
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=8&fv=") + fv) + "&v=") + escape(pv)) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
__com_mochibot__("20fe2914", this, 10301, true);
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;
}
};
Frame 5
stop();
Instance of Symbol 202 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 202 MovieClip "bbmare" 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 204 MovieClip "cobranded" in Frame 5
on (press) {
getURL ("http://www.kibagames.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 10 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 18 MovieClip Frame 1
stop();
Symbol 18 MovieClip Frame 2
stop();
Symbol 40 MovieClip Frame 20
stop();
Symbol 43 MovieClip Frame 1
stop();
Instance of Symbol 42 MovieClip "invisibutton" in Symbol 43 MovieClip Frame 2
on (press) {
_root.gotoAndStop("Game");
}
Instance of Symbol 18 MovieClip in Symbol 44 MovieClip Frame 1
on (press) {
getURL ("http://www.bbdressup.com", "_blank", "GET");
}
Symbol 67 MovieClip Frame 1
stop();
Symbol 67 MovieClip Frame 2
stop();
Symbol 69 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 74 MovieClip Frame 1
stop();
Symbol 74 MovieClip Frame 2
stop();
Instance of Symbol 75 MovieClip in Symbol 94 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 78 MovieClip in Symbol 94 MovieClip Frame 1
on (press) {
_root.game.disableCategories();
_root.game.enableCategory("hair");
}
Instance of Symbol 81 MovieClip in Symbol 94 MovieClip Frame 1
on (press) {
_root.game.disableCategories();
_root.game.enableCategory("top");
}
Instance of Symbol 84 MovieClip in Symbol 94 MovieClip Frame 1
on (press) {
_root.game.disableCategories();
_root.game.enableCategory("bottom");
}
Instance of Symbol 87 MovieClip in Symbol 94 MovieClip Frame 1
on (press) {
_root.game.disableCategories();
_root.game.enableCategory("dress");
}
Instance of Symbol 90 MovieClip in Symbol 94 MovieClip Frame 1
on (press) {
_root.game.disableCategories();
_root.game.enableCategory("shoes");
}
Instance of Symbol 93 MovieClip in Symbol 94 MovieClip Frame 1
on (press) {
_root.game.disableCategories();
_root.game.enableCategory("jewels");
_root.game.enableCategory("purse");
_root.game.enableCategory("bouquet");
_root.game.enableCategory("borsete");
_root.game.enableCategory("glasses");
}
Symbol 98 MovieClip Frame 1
stop();
Symbol 98 MovieClip Frame 2
stop();
Instance of Symbol 98 MovieClip "pa" in Symbol 100 MovieClip Frame 1
on (rollOver) {
pa.gotoAndStop(2);
}
on (rollOut) {
pa.gotoAndStop(1);
}
Symbol 103 MovieClip Frame 1
stop();
Symbol 103 MovieClip Frame 2
stop();
Symbol 199 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 = 148.7;
itemhair1.ycom = 68.8;
itemhair2.xcom = 148.7;
itemhair2.ycom = 68.85;
itemhair3.xcom = 159.5;
itemhair3.ycom = 65.9;
itemhair4.xcom = 159.75;
itemhair4.ycom = 66.6;
itemhair5.xcom = 155.2;
itemhair5.ycom = 68.6;
itemhair6.xcom = 155;
itemhair6.ycom = 64.35;
itemhair7.xcom = 154.4;
itemhair7.ycom = 56.4;
itemtop1.xcom = 160;
itemtop1.ycom = 174;
itemtop2.xcom = 160.55;
itemtop2.ycom = 148.1;
itemtop3.xcom = 170;
itemtop3.ycom = 174.7;
itemtop4.xcom = 155;
itemtop4.ycom = 176.65;
itemtop5.xcom = 158;
itemtop5.ycom = 169.75;
itemtop6.xcom = 169.05;
itemtop6.ycom = 160.75;
itemtop7.xcom = 159;
itemtop7.ycom = 160;
itemdress1.xcom = 177.65;
itemdress1.ycom = 172;
itemdress2.xcom = 191.15;
itemdress2.ycom = 180.5;
itemdress3.xcom = 167.15;
itemdress3.ycom = 198.95;
itemdress4.xcom = 162.15;
itemdress4.ycom = 197.85;
itemdress5.xcom = 162.15;
itemdress5.ycom = 197.65;
itemdress6.xcom = 173.5;
itemdress6.ycom = 173.9;
itemdress7.xcom = 169.65;
itemdress7.ycom = 158.55;
itembottom1.xcom = 164.1;
itembottom1.ycom = 260.95;
itembottom2.xcom = 157.15;
itembottom2.ycom = 268.2;
itembottom3.xcom = 133.9;
itembottom3.ycom = 286.9;
itembottom4.xcom = 150.15;
itembottom4.ycom = 276.55;
itembottom5.xcom = 134.15;
itembottom5.ycom = 286.95;
itembottom6.xcom = 134.15;
itembottom6.ycom = 286.1;
itembottom7.xcom = 151.15;
itembottom7.ycom = 292.8;
itemshoes1.xcom = 157.5;
itemshoes1.ycom = 516;
itemshoes2.xcom = 158;
itemshoes2.ycom = 511.4;
itemshoes3.xcom = 147;
itemshoes3.ycom = 499.95;
itemshoes4.xcom = 156.75;
itemshoes4.ycom = 521.45;
itemshoes5.xcom = 156;
itemshoes5.ycom = 517.2;
itemshoes6.xcom = 229;
itemshoes6.ycom = 489.7;
itemshoes7.xcom = 142;
itemshoes7.ycom = 499.05;
itemglasses1.xcom = 202;
itemglasses1.ycom = 288.15;
itemglasses2.xcom = 201;
itemglasses2.ycom = 280.55;
itemjewels1.xcom = 236;
itemjewels1.ycom = 261.5;
itemjewels2.xcom = 169.85;
itemjewels2.ycom = 130.1;
itemjewels3.xcom = 160;
itemjewels3.ycom = 128.5;
itemborsete1.xcom = 122;
itemborsete1.ycom = 228.3;
itembouquet1.xcom = 109;
itembouquet1.ycom = 301.8;
itempurse1.xcom = 218;
itempurse1.ycom = 287.9;
}
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 - 530) * 2) / _root.game.speed);
endPLAYAGAIN._x = endPLAYAGAIN._x - ((endPLAYAGAIN._x - 830) / _root.game.speed);
endPLAYMORE._x = endPLAYMORE._x - ((endPLAYMORE._x - 830) / _root.game.speed);
_root.bblogo._visible = true;
_root.bbmare._visible = false;
} else {
tab._x = tab._x - (((tab._x - 1030) * 2) / _root.game.speed);
endPLAYAGAIN._x = endPLAYAGAIN._x - ((endPLAYAGAIN._x - 430) / _root.game.speed);
endPLAYMORE._x = endPLAYMORE._x - ((endPLAYMORE._x - 430) / _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:7, enabled:false, hot:"hotBottom"});
itemTypes.push({begin:"shoes", count:7, enabled:false, hot:"hotShoes"});
itemTypes.push({begin:"glasses", count:2, enabled:false, hot:"hotGlasses"});
itemTypes.push({begin:"jewels", count:3, enabled:false, hot:"hotJewels"});
itemTypes.push({begin:"borsete", count:1, enabled:false, hot:"hotBorsete"});
itemTypes.push({begin:"bouquet", count:1, enabled:false, hot:"hotBouquet"});
itemTypes.push({begin:"purse", count:1, enabled:false, hot:"hotPurse"});
adverseTypes = new Array();
adverseTypes.push(new Array(1, "dress", "bottom", "top"));
setActionsOnItems();
putOnCharacter(itemhair3);
Instance of Symbol 100 MovieClip "endPLAYAGAIN" in Symbol 199 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 104 MovieClip "endPLAYMORE" in Symbol 199 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 207 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++;
};