Combined Code
movieClip 2 {
}
movieClip 3 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 += 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 -= decay;
if (alphacheck == 1) {
alphacheck = 2;
sparkle._alpha = totalDecay * alpha1;
} else {
alphacheck = 1;
sparkle._alpha = totalDecay * alpha2;
}
}
}
}
frame 2 {
gotoAndPlay(1);
}
}
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 v3 = this.getBytesLoaded();
var v4 = this.getBytesTotal();
var v5 = Math.round((v3 / v4) * 100);
rectMask_mc._yscale = v5;
if (v3 >= v4) {
_root.preloader.chibi_mc.gotoAndStop(2);
delete this.onEnterFrame;
}
};
}
movieClip 7 {
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;
_speedY = Math.ceil(Math.random() * 3) + 3;
_speedX = _speedY;
_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;
_speedY = Math.ceil(Math.random() * 3) + 3;
_speedX = _speedY;
_yscale = Math.ceil(Math.random() * 60) + 60;
_xscale = Math.ceil(Math.random() * 60) + 60;
} else {
_y = _y + _speedY;
}
};
}
}
movieClip 12 {
}
movieClip 15 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 19 {
}
movieClip 20 {
}
movieClip 25 {
}
movieClip 27 {
}
movieClip 30 {
}
movieClip 31 {
}
movieClip 34 {
}
movieClip 36 {
}
movieClip 37 {
frame 20 {
stop();
}
}
movieClip 39 {
}
movieClip 40 {
frame 1 {
stop();
}
instance invisibutton of movieClip 39 {
onClipEvent (press) {
_root.gotoAndStop('Game');
}
}
}
movieClip 41 {
instance of movieClip 15 {
onClipEvent (press) {
getURL('http://www.bbdressup.com', '_blank', 'GET');
}
}
}
frame 5 {
stop();
}
movieClip 44 {
}
movieClip 47 {
}
movieClip 50 {
}
movieClip 53 {
}
movieClip 56 {
}
movieClip 59 {
}
movieClip 62 {
}
movieClip 65 {
}
movieClip 67 {
}
movieClip 70 {
}
movieClip 72 {
}
movieClip 73 {
}
movieClip 74 {
}
movieClip 75 {
}
movieClip 78 {
}
movieClip 80 {
}
movieClip 82 {
}
movieClip 83 {
}
movieClip 85 {
}
movieClip 86 {
}
movieClip 87 {
}
movieClip 90 {
}
movieClip 93 {
}
movieClip 96 {
}
movieClip 99 {
}
movieClip 102 {
}
movieClip 105 {
}
movieClip 108 {
}
movieClip 110 {
}
movieClip 113 {
}
movieClip 115 {
}
movieClip 116 {
}
movieClip 117 {
}
movieClip 118 {
}
movieClip 121 {
}
movieClip 123 {
}
movieClip 124 {
}
movieClip 125 {
}
movieClip 127 {
}
movieClip 129 {
}
movieClip 130 {
}
movieClip 133 {
}
movieClip 136 {
}
movieClip 138 {
}
movieClip 141 {
}
movieClip 144 {
}
movieClip 147 {
}
movieClip 150 {
}
movieClip 152 {
}
movieClip 155 {
}
movieClip 156 {
}
movieClip 157 {
}
movieClip 158 {
}
movieClip 159 {
}
movieClip 162 {
}
movieClip 164 {
}
movieClip 166 {
}
movieClip 167 {
}
movieClip 169 {
}
movieClip 171 {
}
movieClip 172 {
}
movieClip 175 {
}
movieClip 177 {
}
movieClip 179 {
}
movieClip 181 {
}
movieClip 183 {
}
movieClip 185 {
}
movieClip 187 {
}
movieClip 188 {
}
movieClip 190 {
}
movieClip 192 {
}
movieClip 194 {
}
movieClip 196 {
}
movieClip 198 {
}
movieClip 200 {
}
movieClip 202 {
}
movieClip 204 {
}
movieClip 206 {
}
movieClip 208 {
}
movieClip 211 {
}
movieClip 213 {
}
movieClip 214 {
}
movieClip 216 {
}
movieClip 217 {
}
movieClip 218 {
}
movieClip 219 {
}
movieClip 220 {
}
movieClip 221 {
}
movieClip 222 {
}
movieClip 225 {
}
movieClip 228 {
}
movieClip 229 {
}
movieClip 230 {
}
movieClip 231 {
}
movieClip 232 {
}
movieClip 233 {
}
movieClip 234 {
}
movieClip 235 {
}
movieClip 238 {
}
movieClip 240 {
}
movieClip 242 {
}
movieClip 244 {
}
movieClip 247 {
}
movieClip 250 {
}
movieClip 252 {
}
movieClip 254 {
}
movieClip 256 {
}
movieClip 257 {
}
movieClip 259 {
}
movieClip 261 {
}
movieClip 263 {
}
movieClip 266 {
}
movieClip 268 {
}
movieClip 270 {
}
movieClip 272 {
}
movieClip 275 {
}
movieClip 277 {
}
movieClip 280 {
}
movieClip 283 {
}
movieClip 286 {
}
movieClip 289 {
}
movieClip 292 {
}
movieClip 294 {
}
movieClip 295 {
}
movieClip 298 {
}
movieClip 301 {
}
movieClip 303 {
}
movieClip 306 {
}
movieClip 308 {
}
movieClip 310 {
}
movieClip 312 {
}
movieClip 313 {
}
movieClip 314 {
}
movieClip 315 {
}
movieClip 316 {
}
movieClip 318 {
}
movieClip 319 {
}
movieClip 320 {
}
movieClip 321 {
}
movieClip 323 {
}
movieClip 324 {
}
movieClip 326 {
}
movieClip 328 {
}
movieClip 329 {
}
movieClip 332 {
}
movieClip 334 {
}
movieClip 336 {
}
movieClip 338 {
}
movieClip 340 {
}
movieClip 342 {
}
movieClip 344 {
}
movieClip 346 {
}
movieClip 348 {
}
movieClip 350 {
}
movieClip 352 {
}
movieClip 354 {
}
movieClip 356 {
}
movieClip 359 {
}
movieClip 361 {
}
movieClip 363 {
}
movieClip 365 {
}
movieClip 367 {
}
movieClip 369 {
}
movieClip 371 {
}
movieClip 373 {
}
movieClip 375 {
}
movieClip 377 {
}
movieClip 379 {
}
movieClip 381 {
}
movieClip 383 {
}
movieClip 385 {
}
movieClip 387 {
}
movieClip 389 {
}
movieClip 390 {
}
movieClip 392 {
}
movieClip 394 {
}
movieClip 395 {
}
movieClip 397 {
}
movieClip 399 {
}
movieClip 400 {
}
movieClip 402 {
}
movieClip 405 {
}
movieClip 407 {
}
movieClip 409 {
}
movieClip 411 {
}
movieClip 413 {
}
movieClip 415 {
}
movieClip 417 {
}
movieClip 419 {
}
movieClip 421 {
}
movieClip 423 {
}
movieClip 424 {
}
movieClip 425 {
}
movieClip 427 {
}
movieClip 430 {
}
movieClip 433 {
}
movieClip 436 {
}
movieClip 439 {
}
movieClip 441 {
}
movieClip 443 {
}
movieClip 446 {
}
movieClip 448 {
}
movieClip 450 {
}
movieClip 451 {
}
movieClip 453 {
}
movieClip 454 {
}
movieClip 455 {
}
movieClip 457 {
}
movieClip 458 {
}
movieClip 459 {
}
movieClip 460 {
}
movieClip 461 {
}
movieClip 462 {
}
movieClip 463 {
}
movieClip 464 {
}
movieClip 466 {
}
movieClip 467 {
}
movieClip 468 {
}
movieClip 469 {
}
movieClip 470 {
}
movieClip 472 {
}
movieClip 474 {
}
movieClip 476 {
}
movieClip 478 {
}
movieClip 480 {
}
movieClip 481 {
}
movieClip 482 {
}
movieClip 483 {
}
movieClip 484 {
}
movieClip 485 {
}
movieClip 486 {
}
movieClip 487 {
}
movieClip 488 {
}
movieClip 489 {
}
movieClip 490 {
}
movieClip 491 {
}
movieClip 492 {
}
movieClip 494 {
}
movieClip 497 {
}
movieClip 499 {
}
movieClip 501 {
}
movieClip 502 {
}
movieClip 504 {
}
movieClip 507 {
}
movieClip 509 {
}
movieClip 512 {
}
movieClip 514 {
}
movieClip 516 {
}
movieClip 518 {
}
movieClip 520 {
}
movieClip 522 {
}
movieClip 524 {
}
movieClip 526 {
}
movieClip 527 {
}
movieClip 528 {
}
movieClip 531 {
}
movieClip 533 {
}
movieClip 535 {
}
movieClip 537 {
}
movieClip 539 {
}
movieClip 541 {
}
movieClip 544 {
}
movieClip 547 {
}
movieClip 549 {
}
movieClip 552 {
}
movieClip 554 {
}
movieClip 557 {
}
movieClip 559 {
}
movieClip 562 {
}
movieClip 565 {
}
movieClip 567 {
}
movieClip 570 {
}
movieClip 572 {
}
movieClip 574 {
}
movieClip 576 {
}
movieClip 578 {
}
movieClip 580 {
}
movieClip 582 {
}
movieClip 584 {
}
movieClip 586 {
}
movieClip 589 {
}
movieClip 592 {
}
movieClip 594 {
}
movieClip 596 {
}
movieClip 598 {
}
movieClip 600 {
}
movieClip 603 {
}
movieClip 605 {
}
movieClip 606 {
}
movieClip 609 {
}
movieClip 611 {
}
movieClip 613 {
}
movieClip 616 {
}
movieClip 618 {
}
movieClip 620 {
}
movieClip 622 {
}
movieClip 623 {
}
movieClip 625 {
}
movieClip 627 {
}
movieClip 629 {
}
movieClip 631 {
}
movieClip 633 {
}
movieClip 635 {
}
movieClip 638 {
}
movieClip 640 {
}
movieClip 643 {
}
movieClip 645 {
}
movieClip 647 {
}
movieClip 650 {
}
movieClip 652 {
}
movieClip 654 {
}
movieClip 656 {
}
movieClip 658 {
}
movieClip 661 {
}
movieClip 662 {
}
movieClip 664 {
}
movieClip 666 {
}
movieClip 667 {
}
movieClip 669 {
}
movieClip 670 {
}
movieClip 672 {
}
movieClip 674 {
}
movieClip 675 {
}
movieClip 676 {
}
movieClip 677 {
}
movieClip 679 {
}
movieClip 681 {
}
movieClip 683 {
}
movieClip 684 {
}
movieClip 686 {
}
movieClip 689 {
}
movieClip 691 {
}
movieClip 694 {
}
movieClip 696 {
}
movieClip 699 {
}
movieClip 701 {
}
movieClip 703 {
}
movieClip 705 {
}
movieClip 707 {
}
movieClip 709 {
}
movieClip 711 {
}
movieClip 713 {
}
movieClip 715 {
}
movieClip 718 {
}
movieClip 720 {
}
movieClip 722 {
}
movieClip 724 {
}
movieClip 725 {
}
movieClip 726 {
}
movieClip 727 {
}
movieClip 728 {
}
movieClip 729 {
}
movieClip 730 {
}
movieClip 731 {
}
movieClip 734 {
}
movieClip 736 {
}
movieClip 737 {
}
movieClip 738 {
}
movieClip 739 {
}
movieClip 740 {
}
movieClip 741 {
}
movieClip 742 {
}
movieClip 743 {
}
movieClip 744 {
}
movieClip 745 {
}
movieClip 747 {
}
movieClip 748 {
}
movieClip 749 {
}
movieClip 750 {
}
movieClip 752 {
}
movieClip 753 {
}
movieClip 756 {
}
movieClip 759 {
}
movieClip 761 {
}
movieClip 763 {
}
movieClip 765 {
}
movieClip 767 {
}
movieClip 769 {
}
movieClip 771 {
}
movieClip 773 {
}
movieClip 775 {
}
movieClip 777 {
}
movieClip 779 {
}
movieClip 781 {
}
movieClip 783 {
}
movieClip 785 {
}
movieClip 788 {
}
movieClip 790 {
}
movieClip 792 {
}
movieClip 794 {
}
movieClip 796 {
}
movieClip 799 {
}
movieClip 801 {
}
movieClip 802 {
}
movieClip 805 {
}
movieClip 808 {
}
movieClip 811 {
}
movieClip 814 {
}
movieClip 816 {
}
movieClip 818 {
}
movieClip 820 {
}
movieClip 822 {
}
movieClip 824 {
}
movieClip 826 {
}
movieClip 828 {
}
movieClip 830 {
}
movieClip 832 {
}
movieClip 834 {
}
movieClip 836 {
}
movieClip 839 {
}
movieClip 841 {
}
movieClip 843 {
}
movieClip 846 {
}
movieClip 848 {
}
movieClip 850 {
}
movieClip 853 {
}
movieClip 855 {
}
movieClip 857 {
}
movieClip 859 {
}
movieClip 862 {
}
movieClip 864 {
}
movieClip 866 {
}
movieClip 868 {
}
movieClip 870 {
}
movieClip 872 {
}
movieClip 874 {
}
movieClip 876 {
}
movieClip 879 {
}
movieClip 881 {
}
movieClip 883 {
}
movieClip 885 {
}
movieClip 887 {
}
movieClip 889 {
}
movieClip 891 {
}
movieClip 894 {
}
movieClip 896 {
}
movieClip 899 {
}
movieClip 901 {
}
movieClip 903 {
}
movieClip 905 {
}
movieClip 907 {
}
movieClip 909 {
}
movieClip 911 {
}
movieClip 912 {
}
movieClip 913 {
}
movieClip 914 {
}
movieClip 915 {
}
movieClip 917 {
}
movieClip 920 {
}
movieClip 922 {
}
movieClip 924 {
}
movieClip 926 {
}
movieClip 928 {
}
movieClip 931 {
}
movieClip 934 {
}
movieClip 936 {
}
movieClip 938 {
}
movieClip 940 {
}
movieClip 943 {
}
movieClip 945 {
}
movieClip 947 {
}
movieClip 949 {
}
movieClip 952 {
}
movieClip 955 {
}
movieClip 958 {
}
movieClip 961 {
}
movieClip 963 {
}
movieClip 965 {
}
movieClip 967 {
}
movieClip 968 {
}
movieClip 969 {
}
movieClip 972 {
}
movieClip 974 {
}
movieClip 976 {
}
movieClip 978 {
}
movieClip 980 {
}
movieClip 982 {
}
movieClip 984 {
}
movieClip 986 {
}
movieClip 988 {
}
movieClip 991 {
}
movieClip 994 {
}
movieClip 996 {
}
movieClip 998 {
}
movieClip 1000 {
}
movieClip 1002 {
}
movieClip 1003 {
}
movieClip 1005 {
}
movieClip 1006 {
}
movieClip 1009 {
}
movieClip 1012 {
}
movieClip 1014 {
}
movieClip 1016 {
}
movieClip 1019 {
}
movieClip 1021 {
}
movieClip 1023 {
}
movieClip 1025 {
}
movieClip 1027 {
}
movieClip 1029 {
}
movieClip 1031 {
}
movieClip 1033 {
}
movieClip 1036 {
}
movieClip 1038 {
}
movieClip 1040 {
}
movieClip 1041 {
}
movieClip 1044 {
}
movieClip 1046 {
}
movieClip 1049 {
}
movieClip 1050 {
}
movieClip 1051 {
}
movieClip 1053 {
}
movieClip 1055 {
}
movieClip 1057 {
}
movieClip 1059 {
}
movieClip 1061 {
}
movieClip 1063 {
}
movieClip 1065 {
}
movieClip 1068 {
}
movieClip 1070 {
}
movieClip 1072 {
}
movieClip 1074 {
}
movieClip 1077 {
}
movieClip 1079 {
}
movieClip 1081 {
}
movieClip 1082 {
}
movieClip 1084 {
}
movieClip 1087 {
}
movieClip 1089 {
}
movieClip 1091 {
}
movieClip 1094 {
}
movieClip 1096 {
}
movieClip 1098 {
}
movieClip 1101 {
}
movieClip 1104 {
}
movieClip 1106 {
}
movieClip 1108 {
}
movieClip 1110 {
}
movieClip 1112 {
}
movieClip 1115 {
}
movieClip 1117 {
}
movieClip 1119 {
}
movieClip 1121 {
}
movieClip 1123 {
}
movieClip 1125 {
}
movieClip 1127 {
}
movieClip 1129 {
}
movieClip 1131 {
}
movieClip 1133 {
}
movieClip 1135 {
}
movieClip 1137 {
}
movieClip 1139 {
}
movieClip 1141 {
}
movieClip 1142 {
}
movieClip 1144 {
}
movieClip 1146 {
}
movieClip 1148 {
}
movieClip 1150 {
}
movieClip 1152 {
}
movieClip 1155 {
}
movieClip 1157 {
}
movieClip 1159 {
}
movieClip 1161 {
}
movieClip 1163 {
}
movieClip 1164 {
}
movieClip 1166 {
}
movieClip 1168 {
}
movieClip 1169 {
}
movieClip 1171 {
}
movieClip 1172 {
}
movieClip 1173 {
}
movieClip 1174 {
}
movieClip 1177 {
}
movieClip 1180 {
}
movieClip 1182 {
}
movieClip 1184 {
}
movieClip 1187 {
}
movieClip 1189 {
}
movieClip 1191 {
}
movieClip 1192 {
}
movieClip 1193 {
}
movieClip 1194 {
}
movieClip 1195 {
}
movieClip 1196 {
}
movieClip 1197 {
}
movieClip 1198 {
}
movieClip 1199 {
}
movieClip 1200 {
}
movieClip 1201 {
}
movieClip 1202 {
}
movieClip 1203 {
}
movieClip 1205 {
}
movieClip 1206 {
}
movieClip 1207 {
}
movieClip 1208 {
}
movieClip 1210 {
}
movieClip 1211 {
}
movieClip 1212 {
}
movieClip 1214 {
}
movieClip 1216 {
}
movieClip 1218 {
}
movieClip 1220 {
}
movieClip 1222 {
}
movieClip 1224 {
}
movieClip 1226 {
}
movieClip 1228 {
}
movieClip 1229 {
}
movieClip 1231 {
}
movieClip 1233 {
}
movieClip 1235 {
}
movieClip 1237 {
}
movieClip 1238 {
}
movieClip 1239 {
}
movieClip 1240 {
}
movieClip 1242 {
}
movieClip 1246 {
}
movieClip 1248 {
}
movieClip 1249 {
}
movieClip 1251 {
}
movieClip 1252 {
}
movieClip 1254 {
}
movieClip 1256 {
}
movieClip 1258 {
}
movieClip 1259 {
}
movieClip 1262 {
}
movieClip 1264 {
}
movieClip 1266 {
}
movieClip 1268 {
}
movieClip 1269 {
}
movieClip 1271 {
}
movieClip 1274 {
}
movieClip 1276 {
}
movieClip 1279 {
}
movieClip 1281 {
}
movieClip 1283 {
}
movieClip 1285 {
}
movieClip 1287 {
}
movieClip 1289 {
}
movieClip 1291 {
}
movieClip 1294 {
}
movieClip 1296 {
}
movieClip 1299 {
}
movieClip 1300 {
}
movieClip 1303 {
}
movieClip 1305 {
}
movieClip 1307 {
}
movieClip 1308 {
}
movieClip 1309 {
}
movieClip 1310 {
}
movieClip 1311 {
}
movieClip 1313 {
}
movieClip 1316 {
}
movieClip 1319 {
}
movieClip 1321 {
}
movieClip 1323 {
}
movieClip 1324 {
}
movieClip 1327 {
}
movieClip 1329 {
}
movieClip 1331 {
}
movieClip 1333 {
}
movieClip 1338 {
}
movieClip 1341 {
}
movieClip 1343 {
}
movieClip 1345 {
}
movieClip 1346 {
}
movieClip 1349 {
}
movieClip 1352 {
}
movieClip 1355 {
}
movieClip 1358 {
}
movieClip 1360 {
}
movieClip 1362 {
}
movieClip 1364 {
}
movieClip 1365 {
}
movieClip 1366 {
}
movieClip 1369 {
}
movieClip 1372 {
}
movieClip 1374 {
}
movieClip 1377 {
}
movieClip 1379 {
}
movieClip 1381 {
}
movieClip 1382 {
}
movieClip 1384 {
}
movieClip 1386 {
}
movieClip 1388 {
}
movieClip 1390 {
}
movieClip 1391 {
}
movieClip 1392 {
}
movieClip 1395 {
}
movieClip 1398 {
}
movieClip 1400 {
}
movieClip 1401 {
}
movieClip 1403 {
}
movieClip 1404 {
}
movieClip 1406 {
}
movieClip 1408 {
}
movieClip 1409 {
}
movieClip 1412 {
}
movieClip 1414 {
}
movieClip 1417 {
}
movieClip 1419 {
}
movieClip 1421 {
}
movieClip 1422 {
}
movieClip 1424 {
}
movieClip 1425 {
}
movieClip 1426 {
}
movieClip 1428 {
}
movieClip 1429 {
}
movieClip 1430 {
}
movieClip 1432 {
}
movieClip 1433 {
}
movieClip 1435 {
}
movieClip 1436 {
}
movieClip 1438 {
}
movieClip 1441 {
}
movieClip 1443 {
}
movieClip 1444 {
}
movieClip 1446 {
}
movieClip 1448 {
}
movieClip 1450 {
}
movieClip 1451 {
}
movieClip 1452 {
}
movieClip 1453 {
}
movieClip 1454 {
}
movieClip 1455 {
}
movieClip 1456 {
}
movieClip 1457 {
}
movieClip 1459 {
}
movieClip 1460 {
}
movieClip 1463 {
}
movieClip 1465 {
}
movieClip 1467 {
}
movieClip 1469 {
}
movieClip 1470 {
}
movieClip 1471 {
}
movieClip 1472 {
}
movieClip 1473 {
}
movieClip 1474 {
}
movieClip 1475 {
}
movieClip 1476 {
}
movieClip 1477 {
}
movieClip 1478 {
}
movieClip 1480 {
}
movieClip 1481 {
frame 1 {
function getCatName(candidate) {
var v1 = candidate;
if (v1.length < 8) {
return null;
}
if (v1.substr(0, 5) != 'item_') {
return null;
}
if (v1.indexOf('_') == v1.lastIndexOf('_')) {
return null;
}
var v2 = v1.substr(v1.lastIndexOf('_') + 1);
if (v2 == v2 * 1) {
return v1.substr(v1.indexOf('_') + 1, v1.lastIndexOf('_') - v1.indexOf('_') - 1);
} else {
return null;
}
}
function getCat(candidate) {
if (typeof this[candidate] == 'movieclip') {
candidate = getCatName(candidate);
}
i = 0;
while (i < cats.length) {
if (cats[i][0] == candidate) {
return cats[i];
}
++i;
}
return null;
}
function getCatIndex(candidate) {
if (typeof candidate != 'string') {
candidate = candidate[0];
}
var v1 = 0;
while (v1 < cats.length) {
if (cats[v1][0] == candidate) {
return v1;
}
++v1;
}
return null;
}
function getGroupName(candidate) {
var v2;
v2 = 0;
while (v2 < groups.length) {
if (groups[v2] == candidate) {
return candidate[1];
}
++v2;
}
var v4;
if (typeof this[candidate] == 'movieclip' || typeof candidate == 'string') {
v4 = getCat(candidate);
}
if (typeof v4 != 'object') {
if (typeof candidate == 'object') {
v2 = 0;
while (v2 < cats.length) {
if (cats[v2] == candidate) {
v4 = cats[v2];
}
++v2;
}
}
}
if (typeof v4 == 'object') {
v2 = 0;
while (v2 < groups.length) {
if (groups[v2][0] == v4) {
return groups[v2][1];
}
++v2;
}
}
v2 = 0;
while (v2 < groups.length) {
if (groups[v2][1] == candidate) {
return candidate;
}
++v2;
}
return null;
}
function getGroup(candidate) {
var v4 = null;
if (typeof this[candidate] == 'movieclip' || typeof candidate == 'string') {
v4 = getCat(candidate);
}
if (v4) {
candidate = v4;
if (typeof candidate != 'object') {
return null;
}
var v2 = 0;
while (v2 < groups.length) {
if (groups[v2][0] == candidate) {
return groups[v2];
}
++v2;
}
return null;
}
if (typeof candidate != 'string') {
if (typeof candidate == 'object') {
v2 = 0;
while (v2 < groups.length) {
if (groups[v2] == candidate) {
return candidate[1];
}
++v2;
}
return null;
} else {
return null;
}
}
v2 = 0;
while (v2 < groups.length) {
if (groups[v2][1] == candidate) {
return groups[v2];
}
++v2;
}
return null;
}
function getTabHolder(item) {
var v2 = getGroupName(item);
return this.tabs[v2 + 'TabHolder'];
}
function getTabButton(item) {
var v2 = getGroupName(item);
return this.tabs[v2 + 'TabButton'];
}
function putItem(item) {
var v3;
var v2;
var v4 = item.cat;
v3 = 1;
while (v3 < v4.length) {
this[v4[v3]]._visible = false;
v2 = onCharacter.length - 1;
while (v2 >= 0) {
if (onCharacter[v2] == v4[v3]) {
onCharacter.splice(v2, 1);
}
--v2;
}
++v3;
}
item._visible = true;
onCharacter.push(item._name);
removeIncompatibleItems(item);
}
function hideTabs() {
var v1 = 0;
while (v1 < groups.length) {
(getTabHolder(groups[v1][0]))._visible = false;
++v1;
}
}
function showTab(candidate) {
hideTabs();
(getTabHolder(candidate))._visible = true;
}
}
frame 1 {
function removeIncompatibleItems(item) {
var v2;
var v3 = new Array();
v2 = 0;
while (v2 < onCharacter.length) {
if (matrix[this[onCharacter[v2]].catIndex][item.catIndex] == 1) {
this[onCharacter[v2]]._visible = false;
v3.push(v2);
}
++v2;
}
v2 = 0;
while (v2 < v3.length) {
onCharacter.splice(v3[v2], 1);
++v2;
}
}
function setIncompatibilities() {
var v1;
var v2;
v1 = 0;
while (v1 < cats.length) {
matrix[v1] = new Array();
v2 = 0;
while (v2 < cats.length) {
matrix[v1].push(0);
++v2;
}
++v1;
}
v1 = 0;
while (v1 < adverse.length) {
var v3 = adverse[v1][0];
adverse[v1].splice(0, 1);
var v4 = adverse[v1].length;
cleanArray(adverse[v1]);
if (adverse[v1].length != v4 && v3 == 1) {
} else {
setAdverseArray(adverse[v1]);
for (;;) {
if (!(adverse[v1].length > 2 && v3 == 0)) break;
adverse[v1].splice(0, 1);
setAdverseArray(adverse[v1]);
}
}
++v1;
}
}
function cleanArray(toClean) {
var v1 = 0;
while (v1 < toClean.length) {
if (getCatIndex(toClean[v1]) == null) {
toClean.splice(v1, 1);
--v1;
}
++v1;
}
}
function setAdverseArray(list) {
var v1;
v1 = 1;
while (v1 < list.length) {
setAdverse(list[0], list[v1]);
++v1;
}
}
function setAdverse(cat1, cat2) {
var v2 = getCatIndex(cat1);
var v1 = getCatIndex(cat2);
matrix[v2][v1] = 1;
matrix[v1][v2] = 1;
}
}
frame 1 {
function settings() {
holder.push(['accesories', 'necklace', 'earings', 'belt']);
holder.push(['bottom', 'pants', 'skirt']);
adverse.push([1, 'pants', 'skirt']);
adverse.push([1, 'dress', 'pants', 'skirt', 'top']);
}
function postInitialize() {
showTab('dress');
}
}
frame 1 {
function initialize() {
settings();
populateCats();
setGroups();
setTabButtons();
setIncompatibilities();
setItemActions();
postInitialize();
resetButton.onPress = function () {
var v2 = 0;
while (v2 < onCharacter.length) {
this._parent[onCharacter[v2]]._visible = false;
++v2;
}
onCharacter.splice(0, onCharacter.length);
postInitialize();
this._parent.tabs._visible = true;
};
moreButton.onPress = function () {
getURL('http://www.bbdressup.com', '_blank');
};
showButton.onPress = function () {
this._parent.tabs._visible = !this._parent.tabs._visible;
};
}
function setTabButtons() {
var v2;
var v3;
var v4;
v2 = 0;
while (v2 < groups.length) {
v4 = getTabHolder(groups[v2][0][0]);
v3 = getTabButton(groups[v2][0][0]);
v3.holder = v4;
v4.button = v3;
v3.group = groups[v2][1];
v4.group = v3.group;
v3.onPress = function () {
showTab(this.group);
};
++v2;
}
}
function populateCats() {
var v2;
var v3;
var v4;
for (v2 in this) {
if (typeof this[v2] == 'movieclip') {
v3 = getCatName(v2);
if (v3) {
v4 = getCat(v3);
if (v4) {
v4.push(v2);
} else {
cats.push(new Array());
cats[cats.length - 1].push(v3);
groups.push([cats[cats.length - 1], v3]);
(getCat(v3)).push(v2);
}
}
}
}
}
function setGroups() {
var v1;
var v2;
var v3;
v1 = 0;
while (v1 < holder.length) {
v2 = 1;
while (v2 < holder[v1].length) {
v3 = getGroup(holder[v1][v2]);
if (v3) {
v3[1] = holder[v1][0];
}
++v2;
}
++v1;
}
}
function setItemActions() {
var v2;
var v4;
var item;
var v5;
var v3;
v2 = 0;
while (v2 < cats.length) {
v4 = 1;
while (v4 < cats[v2].length) {
item = cats[v2][v4];
v5 = getTabHolder(item);
v3 = v5[item];
item = this[item];
item.cat = cats[v2];
item.catIndex = v2;
item.tabItem = v3;
v3.item = item;
item._visible = false;
if (typeof v3 == 'movieclip') {
v3.onPress = function () {
putItem(this.item);
};
}
++v4;
}
++v2;
}
}
var cats = new Array();
var holder = new Array();
var groups = new Array();
var adverse = new Array();
var matrix = new Array();
var onCharacter = new Array();
initialize();
}
}
movieClip 1483 {
}
movieClip 1484 {
}
instance bblogo of movieClip 1484 {
onClipEvent (rollOver) {
bbtext.gotoAndStop(2);
}
onClipEvent (rollOut) {
bbtext.gotoAndStop(1);
}
onClipEvent (press) {
getURL('http://www.bbdressup.com', '_blank', 'GET');
}
}
// unknown tag 88 length 63
movieClip 1487 {
}
movieClip 1488 {
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;
};
}
}