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);
}
stop();
var _this = this;
__com_mochibot__("dcd0e304", this, 10301, true);
Frame 2
stop();
instruction_btn.onRelease = function () {
gotoAndStop (3);
};
var levelArr = new Array();
var mySound = new Sound();
mySound.attachSound("music.mp3");
mySound.start();
mySound.onSoundComplete = function () {
mySound.start();
};
levelArr[0] = "Prepare carrot juice for the in-coming rabbits if they ask for it";
levelArr[1] = "Prepare carrot juice for the in-coming rabbits and add vitamin A if they ask for them";
levelArr[2] = "Prepare carrot juice for the in-coming rabbits and add vitamins and minerals if they ask for it";
levelArr[3] = "Prepare carrot juice for the in-coming rabbits and add vitamins and minerals if they ask for it";
levelArr[4] = "Prepare carrot juice for the in-coming rabbits and add vitamins and minerals if they ask for it";
levelArr[5] = "Prepare carrot juice for the in-coming rabbits and add vitamins and minerals if they ask for it";
levelArr[6] = "Prepare carrot juice for the in-coming rabbits and add vitamins and minerals if they ask for it";
levelArr[7] = "Prepare carrot juice for the in-coming rabbits and add vitamins and minerals if they ask for it";
levelArr[8] = "Prepare carrot juice for the in-coming rabbits and add vitamins and minerals if they ask for it";
levelArr[9] = "Prepare carrot juice for the in-coming rabbits and add vitamins and minerals if they ask for it";
yun0_mc.gotoAndPlay("loc3");
yun1_mc.gotoAndPlay("loc3");
yun2_mc.gotoAndPlay("loc3");
delete rabit0_mc.onEnterFrame;
delete rabit1_mc.onEnterFrame;
delete rabit2_mc.onEnterFrame;
rabit0_mc.removeMovieClip();
rabit1_mc.removeMovieClip();
rabit2_mc.removeMovieClip();
Instance of Symbol 294 MovieClip "_logo" in Frame 2
on (release) {
getURL ("http://www.rainbowdressup.com", "_blank");
}
Frame 3
stop();
instruction_btn.onRelease = function () {
gotoAndStop (2);
};
game_btn.onRelease = function () {
gotoAndStop (3);
};
Frame 4
function getgoal() {
if (level == 1) {
levelgoal = 3;
} else if (level == 2) {
levelgoal = 5;
} else if (level == 3) {
levelgoal = 7;
} else if (level == 4) {
levelgoal = 9;
} else if (level == 5) {
levelgoal = 10;
} else if (level == 6) {
levelgoal = 12;
} else if (level == 7) {
levelgoal = 14;
} else if (level == 8) {
levelgoal = 16;
} else if (level == 9) {
levelgoal = 18;
} else if (level == 10) {
levelgoal = 20;
}
}
function startGame() {
delete onEnterFrame;
_this.tuziVc1 = [];
_this.tuziVc2 = [];
_this.tuziVc3 = [];
_this.attachMovie("beizi_mc", "beizi1_mc", 10000);
setProperty("beizi1_mc", _x , 162);
setProperty("beizi1_mc", _y , 266);
_this.attachMovie("beizi_mc", "beizi2_mc", 10001);
setProperty("beizi2_mc", _x , 296);
setProperty("beizi2_mc", _y , 262);
_this.attachMovie("beizi_mc", "beizi3_mc", 10002);
setProperty("beizi3_mc", _x , 435);
setProperty("beizi3_mc", _y , 262);
_this.attachMovie("cup_mc", "cup1_mc", 100023);
setProperty("cup1_mc", _x , 283);
setProperty("cup1_mc", _y , 377);
_this.attachMovie("cup_mc", "cup2_mc", 10024);
setProperty("cup2_mc", _x , 356);
setProperty("cup2_mc", _y , 377);
_this.attachMovie("cup_mc", "cup3_mc", 10025);
setProperty("cup3_mc", _x , 428);
setProperty("cup3_mc", _y , 377);
_this.attachMovie("tluo_mc", "luobo_mc", 10006);
setProperty("luobo_mc", _x , 68);
setProperty("luobo_mc", _y , 364);
_this.attachMovie("va1_mc", "va_mc", 10007);
setProperty("va_mc", _x , 590);
setProperty("va_mc", _y , 311);
if (level < 2) {
va_mc._visible = 0;
}
_this.attachMovie("vb1_mc", "vb_mc", 10008);
setProperty("vb_mc", _x , 683);
setProperty("vb_mc", _y , 309);
if (level < 4) {
vb_mc._visible = 0;
}
_this.attachMovie("vc1_mc", "vc_mc", 10009);
setProperty("vc_mc", _x , 637);
setProperty("vc_mc", _y , 345);
if (level < 6) {
vc_mc._visible = 0;
}
_this.attachMovie("vd1_mc", "vd_mc", 10010);
setProperty("vd_mc", _x , 727);
setProperty("vd_mc", _y , 351);
if (level < 7) {
vd_mc._visible = 0;
}
_this.attachMovie("Minerals1_mc", "Minerals_mc", 10011);
setProperty("Minerals_mc", _x , 526);
setProperty("Minerals_mc", _y , 364);
if (level < 3) {
Minerals_mc._visible = 0;
}
_this.attachMovie("Cabbage1_mc", "Cabbage_mc", 10012);
setProperty("Cabbage_mc", _x , 575);
setProperty("Cabbage_mc", _y , 394);
if (level < 6) {
Cabbage_mc._visible = 0;
}
cup1_mc.enabled = false;
cup2_mc.enabled = false;
cup3_mc.enabled = false;
shownext = 0;
init();
setIntervalcreateRubit2 = setInterval(createRubit, 2000);
rabitVc(luobo_mc, 68, 364, 1);
rabitVc(va_mc, 590, 311, 2);
rabitVc(vb_mc, 683, 309, 3);
rabitVc(vc_mc, 637, 345, 4);
rabitVc(vd_mc, 727, 351, 5);
rabitVc(Minerals_mc, 526, 364, 6);
rabitVc(Cabbage_mc, 575, 394, 7);
pausedGame_mc.enabled = true;
exit_mc.enabled = true;
musicon_btn.enabled = true;
if ((level >= 5) && (level < 6)) {
intervalRa = setInterval(createRabit2, 7000);
}
if (level >= 6) {
intervalRa = setInterval(createRabit2, 9000);
}
}
function init() {
servered = 0;
goleMedal = 0;
silverMedal = 0;
rustyMedal = 0;
pasttime = 0;
}
function createV() {
_this["vcArr" + rubitCount] = new Array();
_this["vcArr" + rubitCount].push("1");
if ((level >= 3) && (level < 6)) {
_this["vcArr" + rubitCount].push("6");
} else if (level >= 6) {
_this["vcArr" + rubitCount].push(random(2) + 6);
}
var _local3 = 0;
var _local1 = 0;
var _local4;
if (level < 2) {
_local4 = 0;
} else if (level == 2) {
_local4 = random(2);
} else if ((level > 2) && (level < 4)) {
_local4 = random(2);
} else if ((level >= 4) && (level < 6)) {
_local4 = 1;
} else if ((level >= 6) && (level < 8)) {
_local4 = random(2) + 1;
} else {
_local4 = 2;
}
while (_local3 < _local4) {
var _local2 = vArr[random(vArr.length)];
m = 0;
while (m <= _local3) {
if (_local2 == _this["vcArr" + rubitCount][m]) {
_local1 = 1;
break;
}
_local1 = 0;
m++;
}
if (_local1 == 0) {
_this["vcArr" + rubitCount].push(_local2);
_this["vcArr" + rubitCount].sort();
_local3++;
}
}
}
function timeCounter() {
duringtime--;
Ttime_mc.gotoAndStop(int(((totaltime - duringtime) * 210) / totaltime));
if (duringtime <= 0) {
clearInterval(intervalID);
clearInterval(intervalRa);
delete onEnterFrame;
cup1_mc.stopDrag();
cup1_mc._x = 283;
cup1_mc._y = 377;
cup2_mc.stopDrag();
cup2_mc._x = 356;
cup2_mc._y = 377;
cup3_mc.stopDrag();
cup3_mc._x = 428;
cup3_mc._y = 377;
if (goleMedal >= levelgoal) {
if (level == 10) {
setIntervalgameOver = setInterval(gameOver, 20, 0);
} else {
setIntervalnextlevel = setInterval(shownextLevel, 20);
}
} else {
setIntervalgameOver = setInterval(gameOver, 20, 1);
}
}
if (pausedtime == 1) {
delete onEnterFrame;
}
}
function createRabit2() {
if ((_this.rubitCount - _this.resultCount) == 1) {
shownext = 0;
setIntervalcreateRubit3 = setInterval(createRubit, 1000);
}
}
function shownextLevel() {
shownext = 1;
clearInterval(intervalID);
clearInterval(intervalRa);
clearInterval(setIntervalnextlevel);
_this.removeMovieClip();
removeMovieClip(beizi1_mc);
removeMovieClip(beizi2_mc);
removeMovieClip(beizi3_mc);
removeMovieClip(luobo_mc);
removeMovieClip(cup1_mc);
removeMovieClip(cup2_mc);
removeMovieClip(cup3_mc);
removeMovieClip(va_mc);
removeMovieClip(vb_mc);
removeMovieClip(vc_mc);
removeMovieClip(vd_mc);
removeMovieClip(Minerals_mc);
removeMovieClip(Cabbage_mc);
_this.rabit0_mc.gotoAndPlay("loc3");
_this.rabit1_mc.gotoAndPlay("loc3");
_this.rabit2_mc.gotoAndPlay("loc3");
_this.yun0_mc.gotoAndPlay("loc3");
_this.yun2_mc.gotoAndPlay("loc3");
_this.yun1_mc.gotoAndPlay("loc3");
_this.resultCount = _this.rubitCount;
pausedGame_mc.enabled = false;
exit_mc.enabled = false;
musicon_btn.enabled = false;
i = 0;
while (i < 1000) {
_this["vcArr" + rubitCount] = [];
i++;
}
_this.attachMovie("shownext_mc", "shownextlevel_mc", _this.getNextHighestDepth());
shownextlevel_mc._x = 0;
shownextlevel_mc._y = 0;
shownextlevel_mc.playgame_btn.onRelease = function () {
level++;
getgoal();
if (level == 2) {
vArr.push("2");
} else if (level == 3) {
} else if (level == 4) {
vArr.push("3");
} else if (level == 5) {
} else if (level == 6) {
} else if (level == 7) {
vArr.push("4");
} else if (level == 8) {
} else if (level == 9) {
vArr.push("5");
} else if (level == 10) {
}
duringtime = 300 + ((level - 1) * 140);
totaltime = 300 + ((level - 1) * 140);
intervalID = setInterval(timeCounter, 100, duringtime);
removeMovieClip(shownextlevel_mc);
startGame();
};
}
function pauseGame() {
if (pausedtimes == 0) {
_this.double = 0;
pausedtimes = 1;
shownext = 1;
clearInterval(intervalID);
clearInterval(intervalRa);
clearInterval(setIntervalnextlevel);
pausedtime = getTimer();
clearInterval(intervalID);
_this.attachMovie("pauseGame_mc", "pauseGame1_mc", _this.getNextHighestDepth());
pauseGame1_mc._x = 0;
pauseGame1_mc._y = 0;
beizi1_mc.enabled = false;
beizi2_mc.enabled = false;
beizi3_mc.enabled = false;
cup1_mc.enabled = false;
cup2_mc.enabled = false;
cup3_mc.enabled = false;
va_mc.enabled = false;
vb_mc.enabled = false;
vc_mc.enabled = false;
vd_mc.enabled = false;
luobo_mc.enabled = false;
Minerals_mc.enabled = false;
Cabbage_mc.enabled = false;
exit_mc.enabled = false;
} else {
restarteGame();
}
}
function restarteGame() {
shownext = 0;
intervalID = setInterval(timeCounter, 100, duringtime);
pausedtimes = 0;
_this.double = 1;
var _local1 = getTimer();
pausedtime = int((_local1 - pausedtime) / 1000);
removeMovieClip("pauseGame1_mc");
beizi1_mc.enabled = true;
beizi2_mc.enabled = true;
beizi3_mc.enabled = true;
luobo_mc.enabled = true;
if (tuziVc1.length > 0) {
cup1_mc.enabled = true;
}
if (tuziVc2.length > 0) {
cup2_mc.enabled = true;
}
if (tuziVc3.length > 0) {
cup3_mc.enabled = true;
}
va_mc.enabled = true;
vb_mc.enabled = true;
vc_mc.enabled = true;
vd_mc.enabled = true;
Minerals_mc.enabled = true;
Cabbage_mc.enabled = true;
pausedGame_mc.enabled = true;
exit_mc.enabled = true;
musicon_btn.enabled = true;
musicoff_btn.enabled = true;
if ((level >= 5) && (level < 6)) {
intervalRa = setInterval(createRabit2, 7000);
}
if (level >= 6) {
intervalRa = setInterval(createRabit2, 9000);
}
}
function gameOver(cc) {
rabit0_mc.gotoAndPlay("loc3");
rabit1_mc.gotoAndPlay("loc3");
rabit2_mc.gotoAndPlay("loc3");
yun0_mc.gotoAndPlay("loc3");
yun1_mc.gotoAndPlay("loc3");
yun2_mc.gotoAndPlay("loc3");
clearInterval(intervalID);
clearInterval(intervalRa);
clearInterval(setIntervalnextlevel);
clearInterval(setIntervalgameOver);
winer = cc;
gotoAndStop (5);
}
function countResult(times) {
var _local2 = getTimer();
var _local1 = int(((_local2 - times) / 1000) - pausedtime);
return(_local1);
}
function createRubit() {
if (shownext == 0) {
shownext = 1;
createV();
clearInterval(_this.setIntervalcreateRubit);
clearInterval(_this.setIntervalcreateRubit2);
clearInterval(_this.setIntervalcreateRubit3);
_this["rabitTime" + rubitCount] = getTimer();
var _local2;
if (level < 3) {
_local2 = random(400) + 100;
} else if ((rubitCount % 3) == 0) {
_local2 = random(100) + 100;
} else if ((rubitCount % 3) == 1) {
_local2 = random(100) + 300;
} else if ((rubitCount % 3) == 2) {
_local2 = random(100) + 450;
}
dd = _this.attachMovie("tuzi", ("rabit" + (rubitCount % 3)) + "_mc", rubitCount + 1000);
dd._x = _local2;
dd._y = 310;
ww = _this.attachMovie("yun_mc", ("yun" + (rubitCount % 3)) + "_mc", rubitCount + 2000);
ww._x = _local2 + 40;
ww._y = 60;
_this[("rabit" + (rubitCount % 3)) + "_mc"].arrloc = rubitCount;
_this[("yun" + (rubitCount % 3)) + "_mc"].ttArr = _this["vcArr" + rubitCount];
ccArr = [dd, ww, "vcArr" + rubitCount, "rabitTime" + rubitCount];
exitGame(_this[("rabit" + (rubitCount % 3)) + "_mc"]);
_this[("rabit" + (rubitCount % 3)) + "_mc"].mcArr = ccArr;
rubitCount++;
cup1_mc.onPress = function () {
this.swapDepths(_this.getNextHighestDepth());
this.startDrag();
onEnterFrame = function () {
if (((this.hitTest(_this.rabit0_mc) && (_this._ymouse < 310)) && (_this._xmouse > (_this.rabit0_mc._x + 120))) && (_this._xmouse < ((_this.rabit0_mc._x + 120) + _this.rabit0_mc._width))) {
_this.zhuangtai0 = 1;
_this.rabit0_mc.gotoAndStop("loc2");
} else if (((this.hitTest(_this.rabit1_mc) && (_this._ymouse < 310)) && (_this._xmouse > (_this.rabit1_mc._x + 120))) && (_this._xmouse < ((_this.rabit1_mc._x + 120) + _this.rabit1_mc._width))) {
_this.zhuangtai1 = 1;
_this.rabit1_mc.gotoAndStop("loc2");
} else if (((this.hitTest(_this.rabit2_mc) && (_this._ymouse < 310)) && (_this._xmouse > (_this.rabit2_mc._x + 120))) && (_this._xmouse < ((_this.rabit2_mc._x + 120) + _this.rabit2_mc._width))) {
_this.zhuangtai2 = 1;
_this.rabit2_mc.gotoAndStop("loc2");
} else {
if ((_this.zhuangtai0 == 1) && (_this.rabit0_mc.zanting > 0)) {
_this.rabit0_mc.gotoAndStop("loc1");
}
if ((_this.zhuangtai1 == 1) && (_this.rabit1_mc.zanting > 0)) {
_this.rabit1_mc.gotoAndStop("loc1");
}
if ((_this.zhuangtai2 == 1) && (_this.rabit2_mc.zanting > 0)) {
_this.rabit2_mc.gotoAndStop("loc1");
}
}
};
};
cup2_mc.onPress = function () {
this.swapDepths(_this.getNextHighestDepth());
this.startDrag();
onEnterFrame = function () {
if (((this.hitTest(_this.rabit0_mc) && (_this._ymouse < 310)) && (_this._xmouse > (_this.rabit0_mc._x + 120))) && (_this._xmouse < ((_this.rabit0_mc._x + 120) + _this.rabit0_mc._width))) {
_this.rabit0_mc.gotoAndStop("loc2");
_this.zhuangtai0 = 1;
} else if (((this.hitTest(_this.rabit1_mc) && (_this._ymouse < 310)) && (_this._xmouse > (_this.rabit1_mc._x + 120))) && (_this._xmouse < ((_this.rabit1_mc._x + 120) + _this.rabit1_mc._width))) {
_this.zhuangtai1 = 1;
_this.rabit1_mc.gotoAndStop("loc2");
} else if (((this.hitTest(_this.rabit2_mc) && (_this._ymouse < 310)) && (_this._xmouse > (_this.rabit2_mc._x + 120))) && (_this._xmouse < ((_this.rabit2_mc._x + 120) + _this.rabit2_mc._width))) {
_this.zhuangtai2 = 1;
_this.rabit2_mc.gotoAndStop("loc2");
} else {
if ((_this.zhuangtai0 == 1) && (_this.rabit0_mc.zanting > 0)) {
_this.rabit0_mc.gotoAndStop("loc1");
}
if ((_this.zhuangtai1 == 1) && (_this.rabit1_mc.zanting > 0)) {
_this.rabit1_mc.gotoAndStop("loc1");
}
if ((_this.zhuangtai2 == 1) && (_this.rabit2_mc.zanting > 0)) {
_this.rabit2_mc.gotoAndStop("loc1");
}
}
};
};
cup3_mc.onPress = function () {
this.swapDepths(_this.getNextHighestDepth());
this.startDrag();
onEnterFrame = function () {
if (((this.hitTest(_this.rabit0_mc) && (_this._ymouse < 310)) && (_this._xmouse > (_this.rabit0_mc._x + 120))) && (_this._xmouse < ((_this.rabit0_mc._x + 120) + _this.rabit0_mc._width))) {
_this.rabit0_mc.gotoAndStop("loc2");
_this.zhuangtai0 = 1;
} else if (((this.hitTest(_this.rabit1_mc) && (_this._ymouse < 310)) && (_this._xmouse > (_this.rabit1_mc._x + 120))) && (_this._xmouse < ((_this.rabit1_mc._x + 120) + _this.rabit1_mc._width))) {
_this.zhuangtai2 = 1;
_this.rabit1_mc.gotoAndStop("loc2");
} else if (((this.hitTest(_this.rabit2_mc) && (_this._ymouse < 310)) && (_this._xmouse > (_this.rabit2_mc._x + 120))) && (_this._xmouse < ((_this.rabit2_mc._x + 120) + _this.rabit2_mc._width))) {
_this.zhuangtai2 = 1;
_this.rabit2_mc.gotoAndStop("loc2");
} else {
if ((_this.zhuangtai0 == 1) && (_this.rabit0_mc.zanting > 0)) {
_this.rabit0_mc.gotoAndStop("loc1");
}
if ((_this.zhuangtai1 == 1) && (_this.rabit1_mc.zanting > 0)) {
_this.rabit1_mc.gotoAndStop("loc1");
}
if ((_this.zhuangtai2 == 1) && (_this.rabit2_mc.zanting > 0)) {
_this.rabit2_mc.gotoAndStop("loc1");
}
}
};
};
cup1_mc.onRelease = function () {
this.stopDrag();
_this.zhuangtai0 = 0;
_this.zhuangtai1 = 0;
_this.zhuangtai2 = 0;
delete onEnterFrame;
if (((this.hitTest(_this.rabit0_mc) && (_this._ymouse < 310)) && (_this._xmouse > (_this.rabit0_mc._x + 120))) && (_this._xmouse < ((_this.rabit0_mc._x + 120) + _this.rabit0_mc._width))) {
feedrabit(_this.cup1_mc, _this.rabit0_mc.mcArr[0], _this.rabit0_mc.mcArr[1], beizi1_mc, tuziVc1, _this[_this.rabit0_mc.mcArr[2]], 283, 377, _this[_this.rabit0_mc.mcArr[3]]);
} else if (((this.hitTest(_this.rabit1_mc) && (_this._ymouse < 310)) && (_this._xmouse > (_this.rabit1_mc._x + 120))) && (_this._xmouse < ((_this.rabit1_mc._x + 120) + _this.rabit1_mc._width))) {
feedrabit(_this.cup1_mc, _this.rabit1_mc.mcArr[0], _this.rabit1_mc.mcArr[1], beizi1_mc, tuziVc1, _this[_this.rabit1_mc.mcArr[2]], 283, 377, _this[_this.rabit1_mc.mcArr[3]]);
} else if (((this.hitTest(_this.rabit2_mc) && (_this._ymouse < 310)) && (_this._xmouse > (_this.rabit2_mc._x + 120))) && (_this._xmouse < ((_this.rabit2_mc._x + 120) + _this.rabit2_mc._width))) {
feedrabit(_this.cup1_mc, _this.rabit2_mc.mcArr[0], _this.rabit2_mc.mcArr[1], beizi1_mc, tuziVc1, _this[_this.rabit2_mc.mcArr[2]], 283, 377, _this[_this.rabit2_mc.mcArr[3]]);
} else {
this._x = 283;
this._y = 377;
}
};
cup1_mc.onReleaseOutside = function () {
this.stopDrag();
this._x = 283;
this._y = 377;
_this.zhuangtai0 = 0;
_this.zhuangtai1 = 0;
_this.zhuangtai2 = 0;
};
cup2_mc.onRelease = function () {
this.stopDrag();
_this.zhuangtai0 = 0;
_this.zhuangtai1 = 0;
_this.zhuangtai2 = 0;
delete onEnterFrame;
if (((this.hitTest(_this.rabit0_mc) && (_this._ymouse < 310)) && (_this._xmouse > (_this.rabit0_mc._x + 120))) && (_this._xmouse < ((_this.rabit0_mc._x + 120) + _this.rabit0_mc._width))) {
feedrabit(_this.cup2_mc, _this.rabit0_mc.mcArr[0], _this.rabit0_mc.mcArr[1], beizi2_mc, tuziVc2, _this[_this.rabit0_mc.mcArr[2]], 356, 377, _this[_this.rabit0_mc.mcArr[3]]);
} else if (((this.hitTest(_this.rabit1_mc) && (_this._ymouse < 310)) && (_this._xmouse > (_this.rabit1_mc._x + 120))) && (_this._xmouse < ((_this.rabit1_mc._x + 120) + _this.rabit1_mc._width))) {
feedrabit(_this.cup2_mc, _this.rabit1_mc.mcArr[0], _this.rabit1_mc.mcArr[1], beizi2_mc, tuziVc2, _this[_this.rabit1_mc.mcArr[2]], 356, 377, _this[_this.rabit1_mc.mcArr[3]]);
} else if (((this.hitTest(_this.rabit2_mc) && (_this._ymouse < 310)) && (_this._xmouse > (_this.rabit2_mc._x + 120))) && (_this._xmouse < ((_this.rabit2_mc._x + 120) + _this.rabit2_mc._width))) {
_this.rabit0_mc.gotoAndStop("loc1");
_this.rabit1_mc.gotoAndStop("loc1");
feedrabit(_this.cup2_mc, _this.rabit2_mc.mcArr[0], _this.rabit2_mc.mcArr[1], beizi2_mc, tuziVc2, _this[_this.rabit2_mc.mcArr[2]], 356, 377, _this[_this.rabit2_mc.mcArr[3]]);
} else {
this._x = 356;
this._y = 377;
}
};
cup2_mc.onReleaseOutside = function () {
this.stopDrag();
this._x = 356;
this._y = 377;
_this.zhuangtai0 = 0;
_this.zhuangtai1 = 0;
_this.zhuangtai2 = 0;
};
cup3_mc.onRelease = function () {
this.stopDrag();
_this.zhuangtai0 = 0;
_this.zhuangtai1 = 0;
_this.zhuangtai2 = 0;
delete onEnterFrame;
if (((this.hitTest(_this.rabit0_mc) && (_this._ymouse < 310)) && (_this._xmouse > (_this.rabit0_mc._x + 120))) && (_this._xmouse < ((_this.rabit0_mc._x + 120) + _this.rabit0_mc._width))) {
_this.rabit1_mc.gotoAndStop("loc1");
_this.rabit2_mc.gotoAndStop("loc1");
feedrabit(_this.cup3_mc, _this.rabit0_mc, _this.rabit0_mc.mcArr[1], beizi3_mc, tuziVc3, _this[_this.rabit0_mc.mcArr[2]], 428, 377, _this[_this.rabit0_mc.mcArr[3]]);
} else if (((this.hitTest(_this.rabit1_mc) && (_this._ymouse < 310)) && (_this._xmouse > (_this.rabit1_mc._x + 120))) && (_this._xmouse < ((_this.rabit1_mc._x + 120) + _this.rabit1_mc._width))) {
_this.rabit0_mc.gotoAndStop("loc1");
_this.rabit2_mc.gotoAndStop("loc1");
feedrabit(_this.cup3_mc, _this.rabit1_mc, _this.rabit1_mc.mcArr[1], beizi3_mc, tuziVc3, _this[_this.rabit1_mc.mcArr[2]], 428, 377, _this[_this.rabit1_mc.mcArr[3]]);
} else if (((this.hitTest(_this.rabit2_mc) && (_this._ymouse < 310)) && (_this._xmouse > (_this.rabit2_mc._x + 120))) && (_this._xmouse < ((_this.rabit2_mc._x + 120) + _this.rabit2_mc._width))) {
_this.rabit0_mc.gotoAndStop("loc1");
_this.rabit1_mc.gotoAndStop("loc1");
feedrabit(_this.cup3_mc, _this.rabit2_mc, _this.rabit2_mc.mcArr[1], beizi3_mc, tuziVc3, _this[_this.rabit2_mc.mcArr[2]], 428, 377, _this[_this.rabit2_mc.mcArr[3]]);
} else {
this._x = 428;
this._y = 377;
}
};
cup3_mc.onReleaseOutside = function () {
this.stopDrag();
this._x = 428;
this._y = 377;
_this.zhuangtai0 = 0;
_this.zhuangtai1 = 0;
_this.zhuangtai2 = 0;
};
}
}
function feedrabit(my_mc, rabit_mc, yun_mc, beizi_mc, Arr1, Arr2, xx, yy, oldtime) {
_this.resultCount++;
beizi_mc.gotoAndStop(1);
my_mc.gotoAndStop(1);
my_mc.stopDrag();
servered++;
my_mc._x = xx;
my_mc._y = yy;
clearInterval(setIntervalnextlevel);
clearInterval(setIntervalgameOver);
if (checkVc(Arr1, Arr2) == 0) {
if (countResult(oldtime) <= 7) {
Arr1.splice(0, Arr1.length);
my_mc.enabled = false;
rabit_mc.correct = 0;
rabit_mc.gotoAndPlay("loc3");
yun_mc.gotoAndPlay("loc3");
duplicateMovieClip ("goldmedal_mc", "medal_mc", _this.getNextHighestDepth());
medal_mc._x = rabit_mc._x + 150;
medal_mc._y = rabit_mc._y - 200;
goleMedal++;
if (_this.rubitCount == _this.resultCount) {
shownext = 0;
setIntervalcreateRubit = setInterval(createRubit, 4000);
}
} else if ((countResult(oldtime) > 7) && (countResult(oldtime) <= 12)) {
Arr1.splice(0, Arr1.length);
my_mc.enabled = false;
rabit_mc.correct = 0;
rabit_mc.gotoAndPlay("loc3");
yun_mc.gotoAndPlay("loc3");
duplicateMovieClip ("silvermedel_mc", "medal_mc", _this.getNextHighestDepth());
medal_mc._x = rabit_mc._x + 150;
medal_mc._y = rabit_mc._y - 200;
silverMedal++;
if (_this.rubitCount == _this.resultCount) {
shownext = 0;
setIntervalcreateRubit = setInterval(createRubit, 4000);
}
} else if (countResult(oldtime) > 12) {
Arr1.splice(0, Arr1.length);
my_mc.enabled = false;
rabit_mc.correct = 1;
rabit_mc.gotoAndPlay("loc3");
yun_mc.gotoAndPlay("loc3");
duplicateMovieClip ("rustymedal_mc", "medal_mc", _this.getNextHighestDepth());
medal_mc._x = rabit_mc._x + 150;
medal_mc._y = rabit_mc._y - 200;
rustyMedal++;
if (rustyMedal >= 3) {
clearInterval(intervalRa);
setIntervalgameOver = setInterval(gameOver, 3000, 1);
} else if (rustyMedal < 3) {
if (_this.rubitCount == _this.resultCount) {
shownext = 0;
setIntervalcreateRubit = setInterval(createRubit, 4000);
}
}
}
} else {
Arr1.splice(0, Arr1.length);
my_mc.enabled = false;
rabit_mc.correct = 1;
rabit_mc.gotoAndPlay("loc3");
yun_mc.gotoAndPlay("loc3");
duplicateMovieClip ("rustymedal_mc", "medal_mc", _this.getNextHighestDepth());
medal_mc._x = rabit_mc._x + 150;
medal_mc._y = rabit_mc._y - 200;
rustyMedal = rustyMedal + 1;
if (rustyMedal >= 3) {
clearInterval(intervalRa);
setIntervalgameOver = setInterval(gameOver, 3000, 1);
} else if (rustyMedal < 3) {
if (_this.rubitCount == _this.resultCount) {
shownext = 0;
setIntervalcreateRubit = setInterval(createRubit, 4000);
}
}
}
}
function rabitVc(my_mc, xx, yy, zz) {
my_mc.onPress = function () {
this.swapDepths(_this.getNextHighestDepth());
this.startDrag();
};
my_mc.onReleaseOutside = function () {
this.stopDrag();
this._x = xx;
this._y = yy;
};
my_mc.onRelease = function () {
this.stopDrag();
if (_root.beizi1_mc.touch_mc.hitTest(this._x, this._y, true)) {
cup1_mc.enabled = true;
mix_sound_mc.gotoAndPlay("mix");
this._x = xx;
this._y = yy;
tuziVc1.push(zz);
sortArr(tuziVc1);
trace(tuziVc1);
beizi1_mc.thisArr = tuziVc1;
cup1_mc.thisArr = tuziVc1;
beizi1_mc.gotoAndStop(tuziVc1.length + 1);
cup1_mc.gotoAndStop(tuziVc1.length + 1);
} else if (beizi2_mc.hitTest(this._x, this._y, true)) {
cup2_mc.enabled = true;
mix_sound_mc.gotoAndPlay("mix");
tuziVc2.push(zz);
sortArr(tuziVc2);
beizi2_mc.thisArr = tuziVc2;
cup2_mc.thisArr = tuziVc2;
beizi2_mc.gotoAndStop(tuziVc2.length + 1);
cup2_mc.gotoAndStop(tuziVc2.length + 1);
this._x = xx;
this._y = yy;
} else if (beizi3_mc.hitTest(this._x, this._y, true)) {
mix_sound_mc.gotoAndPlay("mix");
cup3_mc.enabled = true;
this._x = xx;
this._y = yy;
tuziVc3.push(zz);
sortArr(tuziVc3);
beizi3_mc.thisArr = tuziVc3;
cup3_mc.thisArr = tuziVc3;
beizi3_mc.gotoAndStop(tuziVc3.length + 1);
cup3_mc.gotoAndStop(tuziVc3.length + 1);
} else {
this._x = xx;
this._y = yy;
}
};
}
function sortArr(a) {
i = 0;
while (i < a.length) {
j = i + 1;
while (j < a.length) {
if (a[i] == a[j]) {
delete a[j];
}
j++;
}
i++;
}
a.sort();
m = 0;
while (m < a.length) {
if (a[m] == undefined) {
a.splice(m, a.length - m);
}
m++;
}
a.sort();
}
function checkVc(a, b) {
if (a.length != b.length) {
return(1);
}
var _local1 = 0;
var _local3 = 0;
while (_local1 < a.length) {
if (a[_local1] != b[_local1]) {
_local1 = a.length;
return(1);
}
_local3 = 1;
_local1++;
}
if (_local3 == 1) {
return(0);
}
}
this.stop();
delete onEnterFrame;
var servered = 0;
var goleMedal = 0;
var silverMedal = 0;
var rustyMedal = 0;
var duringtime = 300;
var totaltime = 300;
var level = 0;
var resultCount = 0;
var vArr = [];
var rubitCount = 0;
var tuziVc1 = new Array();
var tuziVc2 = new Array();
var tuziVc3 = new Array();
var remainTime;
var pausedtimes = 0;
var pausedtime = 0;
var pasttime;
var zhuangtai1 = 0;
var zhuangtai2 = 0;
var zhuangtai0 = 0;
var zhuantai = 0;
var double = 0;
var winer;
var intervalRa;
var setIntervalgameOver;
var setIntervalnextlevel;
var shownext = 0;
removeMovieClip(win1_mc);
removeMovieClip(lose1_mc);
rePlay_mc._visible = 0;
exit_mc.onRelease = function () {
clearInterval(intervalID);
clearInterval(intervalRa);
clearInterval(setIntervalnextlevel);
clearInterval(setIntervalgameOver);
_this.shownext = 1;
removeMovieClip(beizi1_mc);
removeMovieClip(beizi2_mc);
removeMovieClip(beizi3_mc);
removeMovieClip(luobo_mc);
removeMovieClip(cup1_mc);
removeMovieClip(cup2_mc);
removeMovieClip(cup3_mc);
removeMovieClip(va_mc);
removeMovieClip(vb_mc);
removeMovieClip(vc_mc);
removeMovieClip(vd_mc);
removeMovieClip(Minerals_mc);
removeMovieClip(Cabbage_mc);
removeMovieClip(my_mc);
_this.gotoAndPlay(2);
};
pausedGame_mc.onRelease = function () {
rePlay_mc._visible = 1;
pausedGame_mc._visible = 0;
pauseGame();
};
rePlay_mc.onRelease = function () {
rePlay_mc._visible = 0;
pausedGame_mc._visible = 1;
pauseGame();
};
musicon_btn.onRelease = function () {
musicoff_btn._visible = 1;
_this.mySound.setVolume(100);
};
musicoff_btn.onRelease = function () {
musicoff_btn._visible = 0;
_this.mySound.setVolume(0);
};
shownextLevel();
Frame 5
stop();
clearInterval(intervalRa);
removeMovieClip("beizi1_mc");
removeMovieClip(beizi2_mc);
removeMovieClip(beizi3_mc);
removeMovieClip(luobo_mc);
removeMovieClip(cup1_mc);
removeMovieClip(cup2_mc);
removeMovieClip(cup3_mc);
removeMovieClip(va_mc);
removeMovieClip(vb_mc);
removeMovieClip(vc_mc);
removeMovieClip(vd_mc);
removeMovieClip(Minerals_mc);
removeMovieClip(Cabbage_mc);
onEnterFrame = function () {
removeMovieClip(rabit0_mc);
removeMovieClip(rabit1_mc);
removeMovieClip(rabit2_mc);
removeMovieClip(yun0_mc);
removeMovieClip(yun1_mc);
removeMovieClip(yun2_mc);
};
clearInterval(intervalID);
clearInterval(intervalRa);
clearInterval(setIntervalnextlevel);
clearInterval(setIntervalgameOver);
_root.attachMovie("win_mc", "win1_mc", _root.getNextHighestDepth());
setProperty("win1_mc", _x , 170);
setProperty("win1_mc", _y , 100);
_root.attachMovie("lose_mc", "lose1_mc", _root.getNextHighestDepth());
setProperty("lose1_mc", _x , 270);
setProperty("lose1_mc", _y , 100);
lose1_mc._visible = 0;
win1_mc._visible = 0;
if (winer == 1) {
lose1_mc._visible = 1;
} else {
win1_mc._visible = 1;
}
Symbol 15 MovieClip [lose_mc] Frame 60
gotoAndPlay (20);
Symbol 19 MovieClip [win_mc] Frame 60
gotoAndPlay (20);
Symbol 32 Button
on (release) {
getURL ("http://www.rainbowdressup.com", "_blank");
}
Symbol 44 MovieClip Frame 1
gold_txt.text = _root.goleMedal;
silver_txt.text = _root.silverMedal;
rusty_txt.text = _root.rustyMedal;
Symbol 46 MovieClip [shownext_mc] Frame 1
level_txt.text = "next level: " + (_root.level + 1);
level_mc._visible = 0;
my_txt.text = _root.levelArr[_root.level];
var temp1 = 0;
temp1 = temp1 + _root.goleMedal;
var temp2 = 0;
temp2 = temp2 + _root.silverMedal;
var temp3 = 0;
temp3 = temp3 + _root.rustyMedal;
if (_root.level > 0) {
golden_txt.text = "you have earned:";
level_mc._visible = 1;
} else {
golden_txt.text = "";
}
Symbol 67 MovieClip Frame 1
va_mc._visible = 0;
vb_mc._visible = 0;
vc_mc._visible = 0;
vd_mc._visible = 0;
kangshi_mc._visible = 0;
cabe_mc._visible = 0;
Symbol 70 MovieClip [yun_mc] Frame 6
function vcArr(a) {
if (a == 2) {
return("va_mc");
}
if (a == 3) {
return("vb_mc");
}
if (a == 4) {
return("vc_mc");
}
if (a == 5) {
return("vd_mc");
}
if (a == 6) {
return("kangshi_mc");
}
if (a == 7) {
return("cabe_mc");
}
return("1");
}
var ttArr;
Symbol 70 MovieClip [yun_mc] Frame 11
if (this.ttArr.length == 1) {
this.gotoAndPlay("loc5");
}
Symbol 70 MovieClip [yun_mc] Frame 14
if (this.ttArr.length == 3) {
this.gotoAndPlay("loc2");
}
if (this.ttArr.length == 4) {
this.gotoAndPlay("loc4");
}
Symbol 70 MovieClip [yun_mc] Frame 18
_mc[vcArr(ttArr[1])]._visible = 1;
Symbol 70 MovieClip [yun_mc] Frame 19
stop();
Symbol 70 MovieClip [yun_mc] Frame 25
Symbol 70 MovieClip [yun_mc] Frame 26
_mc1[vcArr(ttArr[1])]._visible = 1;
_mc2[vcArr(ttArr[2])]._visible = 1;
stop();
Symbol 70 MovieClip [yun_mc] Frame 37
this.removeMovieClip();
stop();
Symbol 70 MovieClip [yun_mc] Frame 41
_mc1[vcArr(ttArr[1])]._visible = 1;
_mc2[vcArr(ttArr[2])]._visible = 1;
_mc3[vcArr(ttArr[3])]._visible = 1;
stop();
Symbol 70 MovieClip [yun_mc] Frame 45
stop();
Symbol 97 MovieClip Frame 1
stop();
Symbol 97 MovieClip Frame 2
play();
Symbol 97 MovieClip Frame 8
_parent.nextFrame();
stop();
Symbol 98 MovieClip [tuzi] Frame 1
var _this = this;
var arrloc;
var mcArr;
Symbol 98 MovieClip [tuzi] Frame 6
stop();
var zanting = 240;
var correct;
_this.onEnterFrame = function () {
if (_root.pausedtimes == 0) {
_this.zanting--;
if (_this.zanting <= 0) {
_this.gotoAndPlay("loc3");
_this.mcArr[1].gotoAndPlay("loc3");
_root.rustyMedal = _root.rustyMedal + 1;
_root.resultCount++;
_root.attachMovie("rustymedal_mc", "medal_mc", _root.getNextHighestDepth());
_root.medal_mc._x = _this._x + 150;
_root.medal_mc._y = _this._y - 200;
if (_root.rustyMedal >= 3) {
clearInterval(_root.intervalRa);
_root.setIntervalgameOver = setInterval(_root.gameOver, 2000, 1);
} else if (_root.rustyMedal < 3) {
if (_root.rubitCount == _root.resultCount) {
_root.shownext = 0;
_root.setIntervalcreateRubit = setInterval(_root.createRubit, 4000);
}
}
}
}
};
Symbol 98 MovieClip [tuzi] Frame 8
delete _this.onEnterFrame;
stop();
if (_this.correct == 1) {
my_mc.gotoAndPlay(2);
} else {
nextFrame();
}
Symbol 98 MovieClip [tuzi] Frame 9
play();
Symbol 98 MovieClip [tuzi] Frame 20
stop();
this.removeMovieClip();
Symbol 104 MovieClip Frame 10
stop();
Symbol 109 MovieClip Frame 10
stop();
Symbol 114 MovieClip Frame 10
stop();
Symbol 119 MovieClip Frame 10
stop();
Symbol 122 MovieClip Frame 10
stop();
Symbol 125 MovieClip Frame 10
stop();
Symbol 128 MovieClip Frame 10
stop();
Symbol 129 MovieClip [cup_mc] Frame 1
stop();
var thisArr;
Symbol 129 MovieClip [cup_mc] Frame 2
v1_mc._alpha = 0;
v2_mc._alpha = 0;
v3_mc._alpha = 0;
v4_mc._alpha = 0;
v5_mc._alpha = 0;
v6_mc._alpha = 0;
v7_mc._alpha = 0;
this[("v" + thisArr[0]) + "_mc"]._alpha = 100;
Symbol 129 MovieClip [cup_mc] Frame 3
this[("v" + thisArr[1]) + "_mc"]._alpha = 80;
this[("v" + thisArr[0]) + "_mc"]._alpha = 50;
this[("v" + thisArr[1]) + "_mc"].gotoAndPlay(1);
Symbol 129 MovieClip [cup_mc] Frame 4
this[("v" + thisArr[2]) + "_mc"]._alpha = 80;
this[("v" + thisArr[1]) + "_mc"]._alpha = 50;
this[("v" + thisArr[0]) + "_mc"]._alpha = 30;
this[("v" + thisArr[2]) + "_mc"].gotoAndPlay(1);
Symbol 129 MovieClip [cup_mc] Frame 5
this[("v" + thisArr[3]) + "_mc"]._alpha = 80;
this[("v" + thisArr[2]) + "_mc"]._alpha = 50;
this[("v" + thisArr[1]) + "_mc"]._alpha = 30;
this[("v" + thisArr[0]) + "_mc"]._alpha = 10;
this[("v" + thisArr[3]) + "_mc"].gotoAndPlay(1);
Symbol 142 MovieClip [beizi_mc] Frame 1
stop();
var thisArr;
Symbol 142 MovieClip [beizi_mc] Frame 2
a1_mc._alpha = 0;
a2_mc._alpha = 0;
a3_mc._alpha = 0;
a4_mc._alpha = 0;
a5_mc._alpha = 0;
this[("a" + thisArr[0]) + "_mc"]._alpha = 100;
Symbol 142 MovieClip [beizi_mc] Frame 3
this[("a" + thisArr[1]) + "_mc"]._alpha = 50;
this[("a" + thisArr[0]) + "_mc"]._alpha = 80;
Symbol 142 MovieClip [beizi_mc] Frame 4
this[("a" + thisArr[2]) + "_mc"]._alpha = 80;
this[("a" + thisArr[1]) + "_mc"]._alpha = 50;
this[("a" + thisArr[0]) + "_mc"]._alpha = 50;
Symbol 142 MovieClip [beizi_mc] Frame 5
this[("a" + thisArr[3]) + "_mc"]._alpha = 80;
this[("a" + thisArr[2]) + "_mc"]._alpha = 80;
this[("a" + thisArr[1]) + "_mc"]._alpha = 50;
this[("a" + thisArr[0]) + "_mc"]._alpha = 30;
Symbol 143 MovieClip [rustymedal_mc] Frame 19
stop();
this.removeMovieClip();
Symbol 182 MovieClip Frame 20
this.removeMovieClip();
Symbol 183 MovieClip Frame 1
Frame_num = 1;
angle = 360;
plus_angle = 0;
scene_width = 400;
scene_height = 45;
bar_mc.i = 0;
bar_mc._visible = 0;
bar_mc.onEnterFrame = function () {
var _local2 = this;
if ((_local2.i % Frame_num) == 0) {
mc = _local2.duplicateMovieClip("bar_mc" + _local2.i, _local2.i);
mc._x = random(scene_width);
mc._y = random(scene_height);
mc._rotation = random(angle) + plus_angle;
}
_local2.i++;
};
Symbol 207 MovieClip Frame 30
stop();
Symbol 219 MovieClip Frame 21
stop();
Symbol 224 MovieClip Frame 100
stop();
_parent.gotoAndPlay("start");
Symbol 235 Button
on (press) {
_root.gotoAndStop("2");
}
Symbol 236 MovieClip Frame 1
loaded = _root.getBytesLoaded();
total = _root.getBytesTotal();
pre = int((loaded / total) * 40);
loadingbar.gotoAndPlay(pre);
stop();
loadingbar.onRelease = function () {
getURL ("http://www.rainbowdressup.com", "_blank");
};
Instance of Symbol 220 MovieClip in Symbol 236 MovieClip Frame 1
on (release) {
getURL ("http://www.rainbowdressup.com", "_blank");
}
Symbol 236 MovieClip Frame 20
stop();
Symbol 238 Button
on (release) {
_root.gotoAndStop(4);
}
Symbol 248 Button
on (release) {
_parent.potiones_mc._x = -2000;
_parent.instruction_btn._x = 325.4;
_parent.game_btn._x = 348.4;
_parent.playmore_btn._x = 276.2;
}
Symbol 253 MovieClip Frame 1
volume_mc.onPress = function () {
this.startDrag(false, 56.5, 45.3, 215, 45.3);
};
volume_mc.onRelease = function () {
this.stopDrag();
};
Symbol 295 Button
on (release) {
gotoAndStop (4);
}
Symbol 296 Button
on (release) {
gotoAndStop (2);
}
Symbol 301 MovieClip Frame 1
stop();
Symbol 301 MovieClip Frame 210
stop();
Symbol 307 MovieClip Frame 19
stop();
this.removeMovieClip();
Symbol 308 MovieClip Frame 19
stop();
this.removeMovieClip();
Symbol 317 MovieClip Frame 1
stop();
Symbol 325 Button
on (release) {
_root.removeMovieClip();
_root.gotoAndPlay(4);
}
Symbol 326 MovieClip Frame 1
level_txt.text = "next level:" + _root.level;
my_txt.text = _root.levelArr[_root.level - 1];