Frame 1
var localDomainLC = new LocalConnection();
flashCurrentDomainName = localDomainLC.domain();
var gametitle = "hair-salon-challenge";
var btnUrl = (((("http://www.dressupone.com/?utm_source=" + flashCurrentDomainName) + "&utm_campaign=") + gametitle) + "&utm_medium=");
function rightclick() {
getURL ("");
}
var fmm01_menu = new ContextMenu();
fmm01_menu.hideBuiltInItems();
_root.menu = fmm01_menu;
var item = new ContextMenuItem("", rightclick);
fmm01_menu.customItems[0] = item;
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_lodsnd", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.lodsnd = new Sound(this._parent.BS_lodsnd);
} else {
this.createEmptyMovieClip("_lodsnd_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.lodsnd = new Sound(this.BS_lodsnd);
}
_global.Behaviors.Sound.lodsnd.attachSound("lodsin");
_global.Behaviors.Sound.lodsnd.start(0, 3);
function rightclick() {
getURL ("");
}
var fmm01_menu = new ContextMenu();
fmm01_menu.hideBuiltInItems();
_root.menu = fmm01_menu;
var item = new ContextMenuItem("", rightclick);
fmm01_menu.customItems[0] = item;
var loadper = 0;
Frame 86
s2.setMask(s1);
s1.cacheAsBitmap = true;
s2.cacheAsBitmap = true;
Frame 169
if (_framesloaded == _totalframes) {
gotoAndPlay (189);
} else {
setProperty(_root.bar, _xscale , (int(_root.getBytesLoaded() / 1000) / int(_root.getBytesTotal() / 1000)) * 100);
loadper = int(((_root.getBytesLoaded() / 1000) / (_root.getBytesTotal() / 1000)) * 100);
}
Frame 170
stop();
gotoAndPlay (197);
Frame 188
stop();
Frame 189
var localDomainLC = new LocalConnection();
flashCurrentDomainName = localDomainLC.domain();
var gametitle = "hair-salon-challenge";
var btnUrl = (((("http://www.dressupone.com/?utm_source=" + flashCurrentDomainName) + "&utm_campaign=") + gametitle) + "&utm_medium=");
if (System.security) {
var o = System.security;
if (o.sandboxType != "localWithFile") {
var xmlLoad = new XML();
xmlLoad.load("http://www.britetrade.com/api/gameplay.php?key=f43ade2590837821c4f1f07b69d276f4&id=61");
}
}
Frame 199
stop();
Frame 200
gotoAndPlay (201);
Frame 243
gotoAndPlay ("strat");
Frame 244
stop();
my_sound = new Sound();
my_sound.attachSound("mix1");
my_sound.start(0, 1000);
musicstart1._visible = true;
musicstop._visible = false;
musicstop.onRelease = function () {
musicstop._visible = false;
musicstart1._visible = true;
my_sound = new Sound();
my_sound.attachSound("mix1");
my_sound.start(0, 1000);
};
musicstart1.onRelease = function () {
musicstop._visible = true;
musicstart1._visible = false;
stopAllSounds();
};
stop();
btnplay.onPress = function () {
gotoAndPlay ("second");
};
Frame 252
stop();
clearInterval(_root.intervalID);
btnplay1.onPress = function () {
gotoAndPlay ("third");
};
Frame 260
stop();
btnfreemodel.onPress = function () {
gotoAndPlay ("freemodel");
};
btnchallengemodel.onPress = function () {
gotoAndPlay ("challeng1");
};
Frame 270
function reset() {
hair1._x = 1000;
hair1._y = 1000;
dryerhair._x = 1000;
dryerhair._y = 1000;
cuthair1._x = 1000;
cuthair1._y = 1000;
cuthair2._x = 1000;
cuthair2._y = 1000;
h1._x = 1000;
h1._y = 1000;
h2._x = 1000;
h2._y = 1000;
h3._x = 1000;
h3._y = 1000;
cliphair1._x = 1000;
cliphair1._y = 1000;
cliphair2._x = 1000;
cliphair2._y = 1000;
cliphair3._x = 1000;
cliphair3._y = 1000;
}
function resetsun() {
sunglass1._x = 664.6;
sunglass1._y = 349.7;
sunglass2._x = 670.6;
sunglass2._y = 354.1;
sunglass3._x = 623.7;
sunglass3._y = 392.4;
sunglass4._x = 566.1;
sunglass4._y = 427.6;
sunglass5._x = 676.8;
sunglass5._y = 427.6;
}
function resetrib() {
ribbon1._x = 566.1;
ribbon1._y = 133.3;
ribbon2._x = 687.5;
ribbon2._y = 133.3;
ribbon3._x = 615;
ribbon3._y = 185;
ribbon4._x = 574;
ribbon4._y = 263.8;
ribbon5._x = 724.6;
ribbon5._y = 263.8;
}
function resetjewel() {
jewel1._x = 126.3;
jewel1._y = 323.6;
jewel2._x = 103.7;
jewel2._y = 169.2;
jewel3._x = 180.6;
jewel3._y = 175.9;
jewel4._x = 29.1;
jewel4._y = 173.2;
jewel5._x = 24.4;
jewel5._y = 301.9;
}
stop();
var sis = 0;
var com = 0;
var cli = 0;
var ribflag = 0;
var sunflag = 0;
var jewelflag = 0;
dryer.onPress = function () {
startDrag (dryer);
};
dryer.onRelease = function () {
stopDrag();
if (dryer.hitTest(mclip)) {
reset();
dryerhair._x = 272.9;
dryerhair._y = 148.7;
_root.dryerhair.gotoAndPlay("f1");
dryer._x = 38;
dryer._y = 424.3;
sis = 0;
com = 0;
cli = 0;
} else {
dryer._x = 38;
dryer._y = 424.3;
}
};
sissor.onPress = function () {
startDrag (sissor);
};
sissor.onRelease = function () {
stopDrag();
if (sissor.hitTest(mclip)) {
if (sis == 0) {
reset();
cuthair1._x = 390.7;
cuthair1._y = 155.8;
_root.cuthair1.gotoAndPlay("f2");
sissor._x = 156.8;
sissor._y = 424.1;
sis = 1;
com = 1;
cli = 1;
} else if (sis == 1) {
reset();
cuthair2._x = 338.6;
cuthair2._y = 144.4;
_root.cuthair2.gotoAndPlay("f3");
sissor._x = 156.8;
sissor._y = 424.1;
com = 2;
cli = 2;
}
} else {
sissor._x = 156.8;
sissor._y = 424.1;
}
};
comb.onPress = function () {
startDrag (comb);
};
comb.onRelease = function () {
stopDrag();
if (comb.hitTest(mclip)) {
if (com == 0) {
reset();
h1._x = 347.6;
h1._y = 132.9;
_root.h1.gotoAndPlay("f4");
comb._x = 197.8;
comb._y = 503.4;
sis = 0;
cli = 0;
} else if (com == 1) {
reset();
h2._x = 343.6;
h2._y = 143.7;
_root.h2.gotoAndPlay("f5");
comb._x = 197.8;
comb._y = 503.4;
sis = 1;
cli = 1;
} else if (com == 2) {
reset();
h3._x = 338.6;
h3._y = 144.4;
_root.h3.gotoAndPlay("f6");
comb._x = 197.8;
comb._y = 503.4;
}
}
};
clip.onPress = function () {
startDrag (clip);
};
clip.onRelease = function () {
stopDrag();
if (clip.hitTest(mclip)) {
if (cli == 0) {
reset();
cliphair1._x = 304.6;
cliphair1._y = 137.5;
_root.cliphair1.gotoAndPlay("f6");
clip._x = 58.6;
clip._y = 503.5;
sis = 0;
} else if (cli == 1) {
reset();
cliphair2._x = 323.5;
cliphair2._y = 142.5;
_root.cliphair2.gotoAndPlay("f7");
clip._x = 58.6;
clip._y = 503.5;
sis = 1;
} else if (cli == 2) {
reset();
cliphair3._x = 320.6;
cliphair3._y = 139.5;
_root.cliphair3.gotoAndPlay("f8");
clip._x = 58.6;
clip._y = 503.5;
sis = 2;
}
}
};
sunglass1.onPress = function () {
startDrag (sunglass1);
};
sunglass1.onRelease = function () {
stopDrag();
if (sunglass1.hitTest(sun)) {
resetsun();
sunglass1._x = 460.5;
sunglass1._y = 230.1;
sunflag = 1;
} else {
sunglass1._x = 664.6;
sunglass1._y = 349.7;
sunflag = 0;
}
};
sunglass2.onPress = function () {
startDrag (sunglass2);
};
sunglass2.onRelease = function () {
stopDrag();
if (sunglass2.hitTest(sun)) {
resetsun();
sunglass2._x = 359.3;
sunglass2._y = 228.3;
sunflag = 2;
} else {
sunglass2._x = 670.6;
sunglass2._y = 354.1;
sunflag = 0;
}
};
sunglass3.onPress = function () {
startDrag (sunglass3);
};
sunglass3.onRelease = function () {
stopDrag();
if (sunglass3.hitTest(sun)) {
resetsun();
sunglass3._x = 362.9;
sunglass3._y = 231.4;
sunflag = 3;
} else {
sunglass3._x = 623.7;
sunglass3._y = 392.4;
sunflag = 0;
}
};
sunglass4.onPress = function () {
startDrag (sunglass4);
};
sunglass4.onRelease = function () {
stopDrag();
if (sunglass4.hitTest(sun)) {
resetsun();
sunglass4._x = 362.9;
sunglass4._y = 232.9;
sunflag = 4;
} else {
sunglass4._x = 566.1;
sunglass4._y = 427.6;
sunflag = 0;
}
};
sunglass5.onPress = function () {
startDrag (sunglass5);
};
sunglass5.onRelease = function () {
stopDrag();
if (sunglass5.hitTest(sun)) {
resetsun();
sunglass5._x = 360.1;
sunglass5._y = 231.8;
sunflag = 5;
} else {
sunglass5._x = 676.8;
sunglass5._y = 427.6;
sunflag = 0;
}
};
ribbon1.onPress = function () {
startDrag (ribbon1);
};
ribbon1.onRelease = function () {
stopDrag();
if (ribbon1.hitTest(rib)) {
resetrib();
ribbon1._x = 351.1;
ribbon1._y = 156.6;
ribflag = 1;
} else {
ribbon1._x = 566.1;
ribbon1._y = 133.3;
ribflag = 0;
}
};
ribbon2.onPress = function () {
startDrag (ribbon2);
};
ribbon2.onRelease = function () {
stopDrag();
if (ribbon2.hitTest(rib)) {
resetrib();
ribbon2._x = 387.8;
ribbon2._y = 161.8;
ribflag = 2;
} else {
ribbon2._x = 687.5;
ribbon2._y = 133.3;
ribflag = 0;
}
};
ribbon3.onPress = function () {
startDrag (ribbon3);
};
ribbon3.onRelease = function () {
stopDrag();
if (ribbon3.hitTest(rib)) {
resetrib();
ribbon3._x = 353.3;
ribbon3._y = 134.8;
ribflag = 3;
} else {
ribbon3._x = 615;
ribbon3._y = 185;
ribflag = 0;
}
};
ribbon4.onPress = function () {
startDrag (ribbon4);
};
ribbon4.onRelease = function () {
stopDrag();
if (ribbon4.hitTest(rib)) {
resetrib();
ribbon4._x = 352.1;
ribbon4._y = 153.4;
ribflag = 4;
} else {
ribbon4._x = 574;
ribbon4._y = 263.8;
ribflag = 0;
}
};
ribbon5.onPress = function () {
startDrag (ribbon5);
};
ribbon5.onRelease = function () {
stopDrag();
if (ribbon5.hitTest(rib)) {
resetrib();
ribbon5._x = 340.6;
ribbon5._y = 182;
ribflag = 5;
} else {
ribbon5._x = 724.6;
ribbon5._y = 263.8;
ribflag = 0;
}
};
jewel1.onPress = function () {
startDrag (jewel1);
};
jewel1.onRelease = function () {
stopDrag();
if (jewel1.hitTest(jclip)) {
resetjewel();
jewel1._x = 349.8;
jewel1._y = 328.6;
jewelflag = 1;
} else {
jewel1._x = 126.3;
jewel1._y = 323.6;
jewelflag = 0;
}
};
jewel2.onPress = function () {
startDrag (jewel2);
};
jewel2.onRelease = function () {
stopDrag();
if (jewel2.hitTest(jclip)) {
resetjewel();
jewel2._x = 374.5;
jewel2._y = 315;
jewelflag = 2;
} else {
jewel2._x = 103.7;
jewel2._y = 169.2;
jewelflag = 0;
}
};
jewel3.onPress = function () {
startDrag (jewel3);
};
jewel3.onRelease = function () {
stopDrag();
if (jewel3.hitTest(jclip)) {
resetjewel();
jewel3._x = 374.9;
jewel3._y = 314.3;
jewelflag = 3;
} else {
jewel3._x = 180.6;
jewel3._y = 175.9;
jewelflag = 0;
}
};
jewel4.onPress = function () {
startDrag (jewel4);
};
jewel4.onRelease = function () {
stopDrag();
if (jewel4.hitTest(jclip)) {
resetjewel();
jewel4._x = 376.4;
jewel4._y = 316.5;
jewelflag = 4;
} else {
jewel4._x = 29.1;
jewel4._y = 173.2;
jewelflag = 0;
}
};
jewel5.onPress = function () {
startDrag (jewel5);
};
jewel5.onRelease = function () {
stopDrag();
if (jewel5.hitTest(jclip)) {
resetjewel();
jewel5._x = 366.8;
jewel5._y = 321.3;
jewelflag = 5;
} else {
jewel5._x = 24.4;
jewel5._y = 301.9;
jewelflag = 0;
}
};
btnback.onRelease = function () {
gotoAndPlay ("third");
};
btnback1.onRelease = function () {
gotoAndPlay ("third");
};
btnshow.onRelease = function () {
dryer._visible = false;
sissor._visible = false;
comb._visible = false;
clip._visible = false;
reck1._visible = false;
reck2._visible = false;
ribbon1._visible = false;
ribbon2._visible = false;
ribbon3._visible = false;
ribbon4._visible = false;
ribbon5._visible = false;
sunglass1._visible = false;
sunglass2._visible = false;
sunglass3._visible = false;
sunglass4._visible = false;
sunglass5._visible = false;
jewel1._visible = false;
jewel2._visible = false;
jewel3._visible = false;
jewel4._visible = false;
jewel5._visible = false;
btnshow._visible = false;
btnmoregames._visible = false;
btnback._visible = false;
ob3._visible = true;
btnback1._visible = true;
btnreplay._visible = true;
btnmoregames1._visible = true;
if (sunflag == 1) {
sunglass1._visible = true;
} else if (sunflag == 2) {
sunglass2._visible = true;
} else if (sunflag == 3) {
sunglass3._visible = true;
} else if (sunflag == 4) {
sunglass4._visible = true;
} else if (sunflag == 5) {
sunglass5._visible = true;
}
if (ribflag == 1) {
ribbon1._visible = true;
} else if (ribflag == 2) {
ribbon2._visible = true;
} else if (ribflag == 3) {
ribbon3._visible = true;
} else if (ribflag == 4) {
ribbon4._visible = true;
} else if (ribflag == 5) {
ribbon5._visible = true;
}
if (jewelflag == 1) {
jewel1._visible = true;
} else if (jewelflag == 2) {
jewel2._visible = true;
} else if (jewelflag == 3) {
jewel3._visible = true;
} else if (jewelflag == 4) {
jewel4._visible = true;
} else if (jewelflag == 5) {
jewel5._visible = true;
}
};
btnreplay.onRelease = function () {
dryer._visible = true;
sissor._visible = true;
comb._visible = true;
clip._visible = true;
reck1._visible = true;
reck2._visible = true;
ribbon1._visible = true;
ribbon2._visible = true;
ribbon3._visible = true;
ribbon4._visible = true;
ribbon5._visible = true;
sunglass1._visible = true;
sunglass2._visible = true;
sunglass3._visible = true;
sunglass4._visible = true;
sunglass5._visible = true;
jewel1._visible = true;
jewel2._visible = true;
jewel3._visible = true;
jewel4._visible = true;
jewel5._visible = true;
btnshow._visible = true;
btnmoregames._visible = true;
btnback._visible = true;
ob3._visible = false;
btnback1._visible = false;
btnreplay._visible = false;
btnmoregames1._visible = false;
jewelflag = 0;
ribflag = 0;
sunflag = 0;
resetrib();
resetsun();
resetjewel();
};
btnmoregames1.onRelease = function () {
getURL (btnUrl + "game-moregames-betweenscenes", "_blank");
};
btnlogo.onRelease = function () {
getURL (btnUrl + "game-logo-tl", "_blank");
};
Frame 277
stop();
Frame 293
function updateTimer() {
tim = tim - 1;
if (tim == 0) {
btntry._visible = true;
youfailed._visible = true;
clearInterval(intervalID);
} else if (tim <= 9) {
txts.text = "00:0" + String(tim);
} else {
txts.text = "00:" + String(tim);
}
}
function reset() {
hair1._x = 1000;
hair1._y = 1000;
dryerhair._x = 1000;
dryerhair._y = 1000;
cuthair1._x = 1000;
cuthair1._y = 1000;
cuthair2._x = 1000;
cuthair2._y = 1000;
h1._x = 1000;
h1._y = 1000;
h2._x = 1000;
h2._y = 1000;
h3._x = 1000;
h3._y = 1000;
cliphair1._x = 1000;
cliphair1._y = 1000;
cliphair2._x = 1000;
cliphair2._y = 1000;
cliphair3._x = 1000;
cliphair3._y = 1000;
}
function resetsun() {
sunglass1._x = 664.6;
sunglass1._y = 349.7;
sunglass2._x = 670.6;
sunglass2._y = 354.1;
sunglass3._x = 623.7;
sunglass3._y = 392.4;
sunglass4._x = 566.1;
sunglass4._y = 427.6;
sunglass5._x = 676.8;
sunglass5._y = 427.6;
}
function resetrib() {
ribbon1._x = 566.1;
ribbon1._y = 133.3;
ribbon2._x = 687.5;
ribbon2._y = 133.3;
ribbon3._x = 615;
ribbon3._y = 185;
ribbon4._x = 574;
ribbon4._y = 263.8;
ribbon5._x = 724.6;
ribbon5._y = 263.8;
}
function resetjewel() {
jewel1._x = 126.3;
jewel1._y = 323.6;
jewel2._x = 103.7;
jewel2._y = 169.2;
jewel3._x = 180.6;
jewel3._y = 175.9;
jewel4._x = 29.1;
jewel4._y = 173.2;
jewel5._x = 24.4;
jewel5._y = 301.9;
}
function falses() {
dryer._visible = false;
sissor._visible = false;
comb._visible = false;
clip._visible = false;
reck1._visible = false;
reck2._visible = false;
ribbon1._visible = false;
ribbon2._visible = false;
ribbon3._visible = false;
ribbon4._visible = false;
ribbon5._visible = false;
sunglass1._visible = false;
sunglass2._visible = false;
sunglass3._visible = false;
sunglass4._visible = false;
sunglass5._visible = false;
jewel1._visible = false;
jewel2._visible = false;
jewel3._visible = false;
jewel4._visible = false;
jewel5._visible = false;
level1._visible = false;
btnmoregames._visible = false;
btnback._visible = false;
msg1._visible = true;
btncontinue._visible = true;
btnmoregames1._visible = true;
}
stop();
btntry._visible = false;
youfailed._visible = false;
nextpic._visible = false;
btnnextpict._visible = false;
newnote._visible = false;
newclose._visible = false;
msg1._visible = false;
btncontinue._visible = false;
btnmoregames1._visible = false;
var tim = 60;
var flag = 1;
p1._alpha = 100;
p2._alpha = 25;
p3._alpha = 25;
var p1_1 = 0;
var p1_2 = 0;
var p2_1 = 0;
var p2_2 = 0;
var p3_1 = 0;
var p3_2 = 0;
clearInterval(intervalID);
var intervalID = 0;
intervalID = setInterval(updateTimer, 1000);
var sis = 0;
var com = 0;
var cli = 0;
var ribflag = 0;
var sunflag = 0;
dryer.onPress = function () {
startDrag (dryer);
};
dryer.onRelease = function () {
stopDrag();
if (dryer.hitTest(mclip)) {
reset();
dryerhair._x = 272.9;
dryerhair._y = 148.7;
_root.dryerhair.gotoAndPlay("f1");
dryer._x = 38;
dryer._y = 424.3;
sis = 0;
com = 0;
cli = 0;
if (flag == 1) {
p1_1 = (p1_2 = 0);
} else if (flag == 2) {
p2_1 = (p2_2 = 0);
} else if (flag == 3) {
p3_1 = (p3_2 = 0);
}
checking();
} else {
dryer._x = 38;
dryer._y = 424.3;
}
};
sissor.onPress = function () {
startDrag (sissor);
};
sissor.onRelease = function () {
stopDrag();
if (sissor.hitTest(mclip)) {
if (sis == 0) {
reset();
cuthair1._x = 390.7;
cuthair1._y = 155.8;
_root.cuthair1.gotoAndPlay("f2");
sissor._x = 156.8;
sissor._y = 424.1;
sis = 1;
com = 1;
cli = 1;
if (flag == 1) {
p1_1 = (p1_2 = 0);
} else if (flag == 2) {
p2_1 = (p2_2 = 0);
} else if (flag == 3) {
p3_1 = (p3_2 = 0);
}
checking();
} else if (sis == 1) {
reset();
cuthair2._x = 338.6;
cuthair2._y = 144.4;
_root.cuthair2.gotoAndPlay("f3");
sissor._x = 156.8;
sissor._y = 424.1;
com = 2;
cli = 2;
if (flag == 1) {
p1_1 = (p1_2 = 0);
} else if (flag == 2) {
p2_1 = (p2_2 = 0);
} else if (flag == 3) {
p3_1 = 1;
}
checking();
}
} else {
sissor._x = 156.8;
sissor._y = 424.1;
}
};
comb.onPress = function () {
startDrag (comb);
};
comb.onRelease = function () {
stopDrag();
if (comb.hitTest(mclip)) {
if (com == 0) {
reset();
h1._x = 347.6;
h1._y = 132.9;
_root.h1.gotoAndPlay("f4");
comb._x = 197.8;
comb._y = 503.4;
sis = 0;
cli = 0;
if (flag == 1) {
p1_1 = (p1_2 = 0);
} else if (flag == 2) {
p2_1 = (p2_2 = 0);
} else if (flag == 3) {
p3_1 = (p3_2 = 0);
}
checking();
} else if (com == 1) {
reset();
h2._x = 343.6;
h2._y = 143.7;
_root.h2.gotoAndPlay("f5");
comb._x = 197.8;
comb._y = 503.4;
sis = 1;
cli = 1;
if (flag == 1) {
p1_1 = (p1_2 = 0);
} else if (flag == 2) {
p2_1 = (p2_2 = 0);
} else if (flag == 3) {
p3_1 = (p3_2 = 0);
}
checking();
} else if (com == 2) {
reset();
h3._x = 338.6;
h3._y = 144.4;
_root.h3.gotoAndPlay("f6");
comb._x = 197.8;
comb._y = 503.4;
if (flag == 1) {
p1_1 = (p1_2 = 0);
} else if (flag == 2) {
p2_1 = (p2_2 = 0);
} else if (flag == 3) {
p3_1 = (p3_2 = 0);
}
checking();
}
}
};
clip.onPress = function () {
startDrag (clip);
};
clip.onRelease = function () {
stopDrag();
if (clip.hitTest(mclip)) {
if (cli == 0) {
reset();
cliphair1._x = 304.6;
cliphair1._y = 137.5;
_root.cliphair1.gotoAndPlay("f6");
clip._x = 58.6;
clip._y = 503.5;
sis = 0;
if (flag == 1) {
p1_1 = (p1_2 = 0);
} else if (flag == 2) {
p2_1 = 1;
} else if (flag == 3) {
p3_1 = (p3_2 = 0);
}
checking();
} else if (cli == 1) {
reset();
cliphair2._x = 323.5;
cliphair2._y = 142.5;
_root.cliphair2.gotoAndPlay("f7");
clip._x = 58.6;
clip._y = 503.5;
sis = 1;
if (flag == 1) {
p1_1 = (p1_2 = 0);
} else if (flag == 2) {
p2_1 = (p2_2 = 0);
} else if (flag == 3) {
p3_1 = (p3_2 = 0);
}
checking();
} else if (cli == 2) {
reset();
cliphair3._x = 320.6;
cliphair3._y = 139.5;
_root.cliphair3.gotoAndPlay("f8");
clip._x = 58.6;
clip._y = 503.5;
sis = 2;
if (flag == 1) {
p1_1 = (p1_2 = 0);
} else if (flag == 2) {
p2_1 = (p2_2 = 0);
} else if (flag == 3) {
p3_1 = (p3_2 = 0);
}
checking();
}
}
};
sunglass1.onPress = function () {
startDrag (sunglass1);
};
sunglass1.onRelease = function () {
stopDrag();
if (sunglass1.hitTest(sun)) {
resetsun();
sunglass1._x = 460.5;
sunglass1._y = 230.1;
sunflag = 1;
if (flag == 1) {
p1_1 = 1;
} else if (flag == 2) {
p2_1 = (p2_2 = 0);
} else if (flag == 3) {
p3_1 = (p3_2 = 0);
}
checking();
} else {
sunglass1._x = 664.6;
sunglass1._y = 349.7;
sunflag = 0;
}
};
sunglass2.onPress = function () {
startDrag (sunglass2);
};
sunglass2.onRelease = function () {
stopDrag();
if (sunglass2.hitTest(sun)) {
resetsun();
sunglass2._x = 359.3;
sunglass2._y = 228.3;
sunflag = 2;
if (flag == 1) {
p1_1 = (p1_2 = 0);
} else if (flag == 2) {
p2_1 = (p2_2 = 0);
} else if (flag == 3) {
p3_1 = (p3_2 = 0);
}
checking();
} else {
sunglass2._x = 670.6;
sunglass2._y = 354.1;
sunflag = 0;
}
};
sunglass3.onPress = function () {
startDrag (sunglass3);
};
sunglass3.onRelease = function () {
stopDrag();
if (sunglass3.hitTest(sun)) {
resetsun();
sunglass3._x = 362.9;
sunglass3._y = 231.4;
sunflag = 3;
if (flag == 1) {
p1_1 = (p1_2 = 0);
} else if (flag == 2) {
p2_1 = (p2_2 = 0);
} else if (flag == 3) {
p3_1 = (p3_2 = 0);
}
checking();
} else {
sunglass3._x = 623.7;
sunglass3._y = 392.4;
sunflag = 0;
}
};
sunglass4.onPress = function () {
startDrag (sunglass4);
};
sunglass4.onRelease = function () {
stopDrag();
if (sunglass4.hitTest(sun)) {
resetsun();
sunglass4._x = 362.9;
sunglass4._y = 232.9;
sunflag = 4;
if (flag == 1) {
p1_1 = (p1_2 = 0);
} else if (flag == 2) {
p2_1 = (p2_2 = 0);
} else if (flag == 3) {
p3_1 = (p3_2 = 0);
}
checking();
} else {
sunglass4._x = 566.1;
sunglass4._y = 427.6;
sunflag = 0;
}
};
sunglass5.onPress = function () {
startDrag (sunglass5);
};
sunglass5.onRelease = function () {
stopDrag();
if (sunglass5.hitTest(sun)) {
resetsun();
sunglass5._x = 360.1;
sunglass5._y = 231.8;
sunflag = 5;
if (flag == 1) {
p1_1 = (p1_2 = 0);
} else if (flag == 2) {
p2_1 = (p2_2 = 0);
} else if (flag == 3) {
p3_1 = (p3_2 = 0);
}
checking();
} else {
sunglass5._x = 676.8;
sunglass5._y = 427.6;
sunflag = 0;
}
};
ribbon1.onPress = function () {
startDrag (ribbon1);
};
ribbon1.onRelease = function () {
stopDrag();
if (ribbon1.hitTest(rib)) {
resetrib();
ribbon1._x = 351.1;
ribbon1._y = 156.6;
ribflag = 1;
if (flag == 1) {
p1_1 = (p1_2 = 0);
} else if (flag == 2) {
p2_1 = (p2_2 = 0);
} else if (flag == 3) {
p3_1 = (p3_2 = 0);
}
checking();
} else {
ribbon1._x = 566.1;
ribbon1._y = 133.3;
ribflag = 0;
}
};
ribbon2.onPress = function () {
startDrag (ribbon2);
};
ribbon2.onRelease = function () {
stopDrag();
if (ribbon2.hitTest(rib)) {
resetrib();
ribbon2._x = 387.8;
ribbon2._y = 161.8;
ribflag = 2;
if (flag == 1) {
p1_2 = 1;
} else if (flag == 2) {
p2_1 = (p2_2 = 0);
} else if (flag == 3) {
p3_1 = (p3_2 = 0);
}
checking();
} else {
ribbon2._x = 687.5;
ribbon2._y = 133.3;
ribflag = 0;
}
};
ribbon3.onPress = function () {
startDrag (ribbon3);
};
ribbon3.onRelease = function () {
stopDrag();
if (ribbon3.hitTest(rib)) {
resetrib();
ribbon3._x = 353.3;
ribbon3._y = 134.8;
ribflag = 3;
if (flag == 1) {
p1_1 = (p1_2 = 0);
} else if (flag == 2) {
p2_1 = (p2_2 = 0);
} else if (flag == 3) {
p3_1 = (p3_2 = 0);
}
checking();
} else {
ribbon3._x = 615;
ribbon3._y = 185;
ribflag = 0;
}
};
ribbon4.onPress = function () {
startDrag (ribbon4);
};
ribbon4.onRelease = function () {
stopDrag();
if (ribbon4.hitTest(rib)) {
resetrib();
ribbon4._x = 352.1;
ribbon4._y = 153.4;
ribflag = 4;
if (flag == 1) {
p1_1 = (p1_2 = 0);
} else if (flag == 2) {
p2_1 = (p2_2 = 0);
} else if (flag == 3) {
p3_1 = (p3_2 = 0);
}
checking();
} else {
ribbon4._x = 574;
ribbon4._y = 263.8;
ribflag = 0;
}
};
ribbon5.onPress = function () {
startDrag (ribbon5);
};
ribbon5.onRelease = function () {
stopDrag();
if (ribbon5.hitTest(rib)) {
resetrib();
ribbon5._x = 340.6;
ribbon5._y = 182;
ribflag = 5;
if (flag == 1) {
p1_1 = (p1_2 = 0);
} else if (flag == 2) {
p2_2 = 1;
} else if (flag == 3) {
p3_1 = (p3_2 = 0);
}
checking();
} else {
ribbon5._x = 724.6;
ribbon5._y = 263.8;
ribflag = 0;
}
};
jewel1.onPress = function () {
startDrag (jewel1);
};
jewel1.onRelease = function () {
stopDrag();
if (jewel1.hitTest(jclip)) {
resetjewel();
jewel1._x = 349.8;
jewel1._y = 328.6;
jewelflag = 1;
if (flag == 1) {
p1_1 = (p1_2 = 0);
} else if (flag == 2) {
p2_1 = (p2_2 = 0);
} else if (flag == 3) {
p3_1 = (p3_2 = 0);
}
checking();
} else {
jewel1._x = 126.3;
jewel1._y = 323.6;
jewelflag = 0;
}
};
jewel2.onPress = function () {
startDrag (jewel2);
};
jewel2.onRelease = function () {
stopDrag();
if (jewel2.hitTest(jclip)) {
resetjewel();
jewel2._x = 374.5;
jewel2._y = 315;
jewelflag = 2;
if (flag == 1) {
p1_1 = (p1_2 = 0);
} else if (flag == 2) {
p2_1 = (p2_2 = 0);
} else if (flag == 3) {
p3_1 = (p3_2 = 0);
}
checking();
} else {
jewel2._x = 103.7;
jewel2._y = 169.2;
jewelflag = 0;
}
};
jewel3.onPress = function () {
startDrag (jewel3);
};
jewel3.onRelease = function () {
stopDrag();
if (jewel3.hitTest(jclip)) {
resetjewel();
jewel3._x = 374.9;
jewel3._y = 314.3;
jewelflag = 3;
if (flag == 1) {
p1_1 = (p1_2 = 0);
} else if (flag == 2) {
p2_1 = (p2_2 = 0);
} else if (flag == 3) {
p3_2 = 1;
}
checking();
} else {
jewel3._x = 180.6;
jewel3._y = 175.9;
jewelflag = 0;
}
};
jewel4.onPress = function () {
startDrag (jewel4);
};
jewel4.onRelease = function () {
stopDrag();
if (jewel4.hitTest(jclip)) {
resetjewel();
jewel4._x = 376.4;
jewel4._y = 316.5;
jewelflag = 4;
if (flag == 1) {
p1_1 = (p1_2 = 0);
} else if (flag == 2) {
p2_1 = (p2_2 = 0);
} else if (flag == 3) {
p3_1 = (p3_2 = 0);
}
checking();
} else {
jewel4._x = 29.1;
jewel4._y = 173.2;
jewelflag = 0;
}
};
jewel5.onPress = function () {
startDrag (jewel5);
};
jewel5.onRelease = function () {
stopDrag();
if (jewel5.hitTest(jclip)) {
resetjewel();
jewel5._x = 366.8;
jewel5._y = 321.3;
jewelflag = 5;
if (flag == 1) {
p1_1 = (p1_2 = 0);
} else if (flag == 2) {
p2_1 = (p2_2 = 0);
} else if (flag == 3) {
p3_1 = (p3_2 = 0);
}
checking();
} else {
jewel5._x = 24.4;
jewel5._y = 301.9;
jewelflag = 0;
}
};
btnback.onRelease = function () {
gotoAndPlay ("third");
};
btnback1.onRelease = function () {
gotoAndPlay ("third");
};
btnmoregames1.onRelease = function () {
getURL (btnUrl + "game-moregames-betweenscenes", "_blank");
};
btnlogo.onRelease = function () {
getURL (btnUrl + "game-logo-tl", "_blank");
};
btncompleted.onRelease = function () {
if (flag == 1) {
if ((p1_1 == 1) && (p1_2 == 1)) {
nextpic._visible = true;
btnnextpict._visible = true;
sis = 0;
com = 0;
cli = 0;
} else {
btntry._visible = true;
youfailed._visible = true;
clearInterval(intervalID);
}
} else if (flag == 2) {
if ((p2_1 == 1) && (p2_2 == 1)) {
nextpic._visible = true;
btnnextpict._visible = true;
sis = 0;
com = 0;
cli = 0;
} else {
btntry._visible = true;
youfailed._visible = true;
clearInterval(intervalID);
}
} else if (flag == 3) {
if ((p3_1 == 1) && (p3_2 == 1)) {
clearInterval(intervalID);
msg1._visible = true;
btncontinue._visible = true;
btnmoregames1._visible = true;
sis = 0;
com = 0;
cli = 0;
} else {
btntry._visible = true;
youfailed._visible = true;
clearInterval(intervalID);
}
}
};
btncontinue.onRelease = function () {
gotoAndPlay ("challeng2");
};
btndone1.onRelease = function () {
newnote._visible = true;
newclose._visible = true;
};
newclose.onRelease = function () {
newnote._visible = false;
newclose._visible = false;
};
btnnextpict.onRelease = function () {
if (flag == 1) {
flag = 2;
p1._alpha = 25;
p2._alpha = 100;
p3._alpha = 25;
} else if (flag == 2) {
flag = 3;
p1._alpha = 25;
p2._alpha = 25;
p3._alpha = 100;
}
btntry._visible = false;
youfailed._visible = false;
nextpic._visible = false;
btnnextpict._visible = false;
newnote._visible = false;
newclose._visible = false;
msg1._visible = false;
btncontinue._visible = false;
btnmoregames1._visible = false;
reset();
hair1._x = 347.6;
hair1._y = 148.7;
resetrib();
resetsun();
resetjewel();
};
btntry.onRelease = function () {
btntry._visible = false;
youfailed._visible = false;
nextpic._visible = false;
btnnextpict._visible = false;
newnote._visible = false;
newclose._visible = false;
msg1._visible = false;
btncontinue._visible = false;
btnmoregames1._visible = false;
tim = 60;
flag = 1;
p1._alpha = 100;
p2._alpha = 25;
p3._alpha = 25;
p1_1 = 0;
p1_2 = 0;
p2_1 = 0;
p2_2 = 0;
p3_1 = 0;
p3_2 = 0;
reset();
hair1._x = 347.6;
hair1._y = 148.7;
resetrib();
resetsun();
resetjewel();
intervalID = 0;
intervalID = setInterval(updateTimer, 1000);
};
Frame 301
stop();
Frame 304
function updateTimer() {
tim = tim - 1;
if (tim == 0) {
btntry._visible = true;
youfailed._visible = true;
clearInterval(intervalID);
} else if (tim <= 9) {
txts.text = "00:0" + String(tim);
} else {
txts.text = "00:" + String(tim);
}
}
function reset() {
hair1._x = 1000;
hair1._y = 1000;
dryerhair._x = 1000;
dryerhair._y = 1000;
cuthair1._x = 1000;
cuthair1._y = 1000;
cuthair2._x = 1000;
cuthair2._y = 1000;
h1._x = 1000;
h1._y = 1000;
h2._x = 1000;
h2._y = 1000;
h3._x = 1000;
h3._y = 1000;
cliphair1._x = 1000;
cliphair1._y = 1000;
cliphair2._x = 1000;
cliphair2._y = 1000;
cliphair3._x = 1000;
cliphair3._y = 1000;
}
function resetsun() {
sunglass1._x = 664.6;
sunglass1._y = 349.7;
sunglass2._x = 670.6;
sunglass2._y = 354.1;
sunglass3._x = 623.7;
sunglass3._y = 392.4;
sunglass4._x = 566.1;
sunglass4._y = 427.6;
sunglass5._x = 676.8;
sunglass5._y = 427.6;
}
function resetrib() {
ribbon1._x = 566.1;
ribbon1._y = 133.3;
ribbon2._x = 687.5;
ribbon2._y = 133.3;
ribbon3._x = 615;
ribbon3._y = 185;
ribbon4._x = 574;
ribbon4._y = 263.8;
ribbon5._x = 724.6;
ribbon5._y = 263.8;
}
function resetjewel() {
jewel1._x = 126.3;
jewel1._y = 323.6;
jewel2._x = 103.7;
jewel2._y = 169.2;
jewel3._x = 180.6;
jewel3._y = 175.9;
jewel4._x = 29.1;
jewel4._y = 173.2;
jewel5._x = 24.4;
jewel5._y = 301.9;
}
function falses() {
dryer._visible = false;
sissor._visible = false;
comb._visible = false;
clip._visible = false;
reck1._visible = false;
reck2._visible = false;
ribbon1._visible = false;
ribbon2._visible = false;
ribbon3._visible = false;
ribbon4._visible = false;
ribbon5._visible = false;
sunglass1._visible = false;
sunglass2._visible = false;
sunglass3._visible = false;
sunglass4._visible = false;
sunglass5._visible = false;
jewel1._visible = false;
jewel2._visible = false;
jewel3._visible = false;
jewel4._visible = false;
jewel5._visible = false;
level2._visible = false;
btnmoregames._visible = false;
btnback._visible = false;
msg12._visible = true;
btncontinue._visible = true;
btnmoregames1._visible = true;
}
stop();
btntry._visible = false;
youfailed._visible = false;
nextpic._visible = false;
btnnextpict._visible = false;
newnote._visible = false;
newclose._visible = false;
reset();
hair1._x = 347.6;
hair1._y = 148.7;
dryer._visible = true;
sissor._visible = true;
comb._visible = true;
clip._visible = true;
reck1._visible = true;
reck2._visible = true;
ribbon1._visible = true;
ribbon2._visible = true;
ribbon3._visible = true;
ribbon4._visible = true;
ribbon5._visible = true;
sunglass1._visible = true;
sunglass2._visible = true;
sunglass3._visible = true;
sunglass4._visible = true;
sunglass5._visible = true;
jewel1._visible = true;
jewel2._visible = true;
jewel3._visible = true;
jewel4._visible = true;
jewel5._visible = true;
btnshow._visible = true;
btnmoregames._visible = true;
btnback._visible = true;
ob3._visible = false;
btnback1._visible = false;
btnreplay._visible = false;
btnmoregames1._visible = false;
resetrib();
resetsun();
resetjewel();
msg12._visible = false;
btncontinue._visible = false;
btnmoregames1._visible = false;
var tim = 60;
var flag = 1;
p1._alpha = 100;
p2._alpha = 25;
p3._alpha = 25;
var p1_1 = 0;
var p1_2 = 0;
var p1_3 = 0;
var p1_4 = 0;
var p2_1 = 0;
var p2_2 = 0;
var p2_3 = 0;
var p2_4 = 0;
var p3_1 = 0;
var p3_2 = 0;
var p3_3 = 0;
var p3_4 = 0;
clearInterval(intervalID);
var intervalID = setInterval(updateTimer, 1000);
var sis = 0;
var com = 0;
var cli = 0;
var ribflag = 0;
var sunflag = 0;
dryer.onPress = function () {
startDrag (dryer);
};
dryer.onRelease = function () {
stopDrag();
if (dryer.hitTest(mclip)) {
reset();
dryerhair._x = 272.9;
dryerhair._y = 148.7;
_root.dryerhair.gotoAndPlay("f1");
dryer._x = 38;
dryer._y = 424.3;
sis = 0;
com = 0;
cli = 0;
if (flag == 1) {
if (p1_1 == 0) {
p1_1 = 0;
}
if (p1_2 == 0) {
p1_2 = 0;
}
if (p1_3 == 0) {
p1_3 = 0;
}
if (p1_4 == 0) {
p1_4 = 0;
}
} else if (flag == 2) {
if (p2_1 == 0) {
p2_1 = 0;
}
if (p2_2 == 0) {
p2_2 = 0;
}
if (p2_3 == 0) {
p2_3 = 0;
}
if (p2_4 == 0) {
p2_4 = 0;
}
} else if (flag == 3) {
if (p3_1 == 0) {
p3_1 = 0;
}
if (p3_2 == 0) {
p3_2 = 0;
}
if (p3_3 == 0) {
p3_3 = 0;
}
if (p3_4 == 0) {
p3_4 = 0;
}
}
checking();
} else {
dryer._x = 38;
dryer._y = 424.3;
}
};
sissor.onPress = function () {
startDrag (sissor);
};
sissor.onRelease = function () {
stopDrag();
if (sissor.hitTest(mclip)) {
if (sis == 0) {
reset();
cuthair1._x = 390.7;
cuthair1._y = 155.8;
_root.cuthair1.gotoAndPlay("f2");
sissor._x = 156.8;
sissor._y = 424.1;
sis = 1;
com = 1;
cli = 1;
if (flag == 1) {
if (p1_1 == 0) {
p1_1 = 0;
}
if (p1_2 == 0) {
p1_2 = 0;
}
if (p1_3 == 0) {
p1_3 = 0;
}
if (p1_4 == 0) {
p1_4 = 0;
}
} else if (flag == 2) {
if (p2_1 == 0) {
p2_1 = 0;
}
if (p2_2 == 0) {
p2_2 = 0;
}
if (p2_3 == 0) {
p2_3 = 0;
}
if (p2_4 == 0) {
p2_4 = 0;
}
} else if (flag == 3) {
p3_1 = 1;
}
checking();
} else if (sis == 1) {
reset();
cuthair2._x = 338.6;
cuthair2._y = 144.4;
_root.cuthair2.gotoAndPlay("f3");
sissor._x = 156.8;
sissor._y = 424.1;
com = 2;
cli = 2;
if (flag == 1) {
if (p1_1 == 0) {
p1_1 = 0;
}
if (p1_2 == 0) {
p1_2 = 0;
}
if (p1_3 == 0) {
p1_3 = 0;
}
if (p1_4 == 0) {
p1_4 = 0;
}
} else if (flag == 2) {
p2_1 = 1;
} else if (flag == 3) {
if (p3_1 == 0) {
p3_1 = 0;
}
if (p3_2 == 0) {
p3_2 = 0;
}
if (p3_3 == 0) {
p3_3 = 0;
}
if (p3_4 == 0) {
p3_4 = 0;
}
}
checking();
}
} else {
sissor._x = 156.8;
sissor._y = 424.1;
}
};
comb.onPress = function () {
startDrag (comb);
};
comb.onRelease = function () {
stopDrag();
if (comb.hitTest(mclip)) {
if (com == 0) {
reset();
h1._x = 347.6;
h1._y = 132.9;
_root.h1.gotoAndPlay("f4");
comb._x = 197.8;
comb._y = 503.4;
sis = 0;
cli = 0;
if (flag == 1) {
if (p1_1 == 0) {
p1_1 = 0;
}
if (p1_2 == 0) {
p1_2 = 0;
}
if (p1_3 == 0) {
p1_3 = 0;
}
if (p1_4 == 0) {
p1_4 = 0;
}
} else if (flag == 2) {
if (p2_1 == 0) {
p2_1 = 0;
}
if (p2_2 == 0) {
p2_2 = 0;
}
if (p2_3 == 0) {
p2_3 = 0;
}
if (p2_4 == 0) {
p2_4 = 0;
}
} else if (flag == 3) {
if (p3_1 == 0) {
p3_1 = 0;
}
if (p3_2 == 0) {
p3_2 = 0;
}
if (p3_3 == 0) {
p3_3 = 0;
}
if (p3_4 == 0) {
p3_4 = 0;
}
}
checking();
} else if (com == 1) {
reset();
h2._x = 343.6;
h2._y = 143.7;
_root.h2.gotoAndPlay("f5");
comb._x = 197.8;
comb._y = 503.4;
sis = 1;
cli = 1;
if (flag == 1) {
if (p1_1 == 0) {
p1_1 = 0;
}
if (p1_2 == 0) {
p1_2 = 0;
}
if (p1_3 == 0) {
p1_3 = 0;
}
if (p1_4 == 0) {
p1_4 = 0;
}
} else if (flag == 2) {
if (p2_1 == 0) {
p2_1 = 0;
}
if (p2_2 == 0) {
p2_2 = 0;
}
if (p2_3 == 0) {
p2_3 = 0;
}
if (p2_4 == 0) {
p2_4 = 0;
}
} else if (flag == 3) {
if (p3_1 == 0) {
p3_1 = 0;
}
if (p3_2 == 0) {
p3_2 = 0;
}
if (p3_3 == 0) {
p3_3 = 0;
}
if (p3_4 == 0) {
p3_4 = 0;
}
}
checking();
} else if (com == 2) {
reset();
h3._x = 338.6;
h3._y = 144.4;
_root.h3.gotoAndPlay("f6");
comb._x = 197.8;
comb._y = 503.4;
if (flag == 1) {
if (p1_1 == 0) {
p1_1 = 0;
}
if (p1_2 == 0) {
p1_2 = 0;
}
if (p1_3 == 0) {
p1_3 = 0;
}
if (p1_4 == 0) {
p1_4 = 0;
}
} else if (flag == 2) {
if (p2_1 == 0) {
p2_1 = 0;
}
if (p2_2 == 0) {
p2_2 = 0;
}
if (p2_3 == 0) {
p2_3 = 0;
}
if (p2_4 == 0) {
p2_4 = 0;
}
} else if (flag == 3) {
if (p3_1 == 0) {
p3_1 = 0;
}
if (p3_2 == 0) {
p3_2 = 0;
}
if (p3_3 == 0) {
p3_3 = 0;
}
if (p3_4 == 0) {
p3_4 = 0;
}
}
checking();
}
}
};
clip.onPress = function () {
startDrag (clip);
};
clip.onRelease = function () {
stopDrag();
if (clip.hitTest(mclip)) {
if (cli == 0) {
reset();
cliphair1._x = 304.6;
cliphair1._y = 137.5;
_root.cliphair1.gotoAndPlay("f6");
clip._x = 58.6;
clip._y = 503.5;
sis = 0;
if (flag == 1) {
p1_1 = 1;
} else if (flag == 2) {
if (p2_1 == 0) {
p2_1 = 0;
}
if (p2_2 == 0) {
p2_2 = 0;
}
if (p2_3 == 0) {
p2_3 = 0;
}
if (p2_4 == 0) {
p2_4 = 0;
}
} else if (flag == 3) {
if (p3_1 == 0) {
p3_1 = 0;
}
if (p3_2 == 0) {
p3_2 = 0;
}
if (p3_3 == 0) {
p3_3 = 0;
}
if (p3_4 == 0) {
p3_4 = 0;
}
}
checking();
} else if (cli == 1) {
reset();
cliphair2._x = 323.5;
cliphair2._y = 142.5;
_root.cliphair2.gotoAndPlay("f7");
clip._x = 58.6;
clip._y = 503.5;
sis = 1;
if (flag == 1) {
if (p1_1 == 0) {
p1_1 = 0;
}
if (p1_2 == 0) {
p1_2 = 0;
}
if (p1_3 == 0) {
p1_3 = 0;
}
if (p1_4 == 0) {
p1_4 = 0;
}
} else if (flag == 2) {
if (p2_1 == 0) {
p2_1 = 0;
}
if (p2_2 == 0) {
p2_2 = 0;
}
if (p2_3 == 0) {
p2_3 = 0;
}
if (p2_4 == 0) {
p2_4 = 0;
}
} else if (flag == 3) {
if (p3_1 == 0) {
p3_1 = 0;
}
if (p3_2 == 0) {
p3_2 = 0;
}
if (p3_3 == 0) {
p3_3 = 0;
}
if (p3_4 == 0) {
p3_4 = 0;
}
}
checking();
} else if (cli == 2) {
reset();
cliphair3._x = 320.6;
cliphair3._y = 139.5;
_root.cliphair3.gotoAndPlay("f8");
clip._x = 58.6;
clip._y = 503.5;
sis = 2;
if (flag == 1) {
if (p1_1 == 0) {
p1_1 = 0;
}
if (p1_2 == 0) {
p1_2 = 0;
}
if (p1_3 == 0) {
p1_3 = 0;
}
if (p1_4 == 0) {
p1_4 = 0;
}
} else if (flag == 2) {
if (p2_1 == 0) {
p2_1 = 0;
}
if (p2_2 == 0) {
p2_2 = 0;
}
if (p2_3 == 0) {
p2_3 = 0;
}
if (p2_4 == 0) {
p2_4 = 0;
}
} else if (flag == 3) {
if (p3_1 == 0) {
p3_1 = 0;
}
if (p3_2 == 0) {
p3_2 = 0;
}
if (p3_3 == 0) {
p3_3 = 0;
}
if (p3_4 == 0) {
p3_4 = 0;
}
}
checking();
}
}
};
sunglass1.onPress = function () {
startDrag (sunglass1);
};
sunglass1.onRelease = function () {
stopDrag();
if (sunglass1.hitTest(sun)) {
resetsun();
sunglass1._x = 460.5;
sunglass1._y = 230.1;
sunflag = 1;
if (flag == 1) {
if (p1_1 == 0) {
p1_1 = 0;
}
if (p1_2 == 0) {
p1_2 = 0;
}
if (p1_3 == 0) {
p1_3 = 0;
}
if (p1_4 == 0) {
p1_4 = 0;
}
} else if (flag == 2) {
if (p2_1 == 0) {
p2_1 = 0;
}
if (p2_2 == 0) {
p2_2 = 0;
}
if (p2_3 == 0) {
p2_3 = 0;
}
if (p2_4 == 0) {
p2_4 = 0;
}
} else if (flag == 3) {
p3_2 = 1;
}
checking();
} else {
sunglass1._x = 664.6;
sunglass1._y = 349.7;
sunflag = 0;
}
};
sunglass2.onPress = function () {
startDrag (sunglass2);
};
sunglass2.onRelease = function () {
stopDrag();
if (sunglass2.hitTest(sun)) {
resetsun();
sunglass2._x = 359.3;
sunglass2._y = 228.3;
sunflag = 2;
if (flag == 1) {
if (p1_1 == 0) {
p1_1 = 0;
}
if (p1_2 == 0) {
p1_2 = 0;
}
if (p1_3 == 0) {
p1_3 = 0;
}
if (p1_4 == 0) {
p1_4 = 0;
}
} else if (flag == 2) {
if (p2_1 == 0) {
p2_1 = 0;
}
if (p2_2 == 0) {
p2_2 = 0;
}
if (p2_3 == 0) {
p2_3 = 0;
}
if (p2_4 == 0) {
p2_4 = 0;
}
} else if (flag == 3) {
if (p3_1 == 0) {
p3_1 = 0;
}
if (p3_2 == 0) {
p3_2 = 0;
}
if (p3_3 == 0) {
p3_3 = 0;
}
if (p3_4 == 0) {
p3_4 = 0;
}
}
checking();
} else {
sunglass2._x = 670.6;
sunglass2._y = 354.1;
sunflag = 0;
}
};
sunglass3.onPress = function () {
startDrag (sunglass3);
};
sunglass3.onRelease = function () {
stopDrag();
if (sunglass3.hitTest(sun)) {
resetsun();
sunglass3._x = 362.9;
sunglass3._y = 231.4;
sunflag = 3;
if (flag == 1) {
p1_2 = 1;
} else if (flag == 2) {
if (p2_1 == 0) {
p2_1 = 0;
}
if (p2_2 == 0) {
p2_2 = 0;
}
if (p2_3 == 0) {
p2_3 = 0;
}
if (p2_4 == 0) {
p2_4 = 0;
}
} else if (flag == 3) {
if (p3_1 == 0) {
p3_1 = 0;
}
if (p3_2 == 0) {
p3_2 = 0;
}
if (p3_3 == 0) {
p3_3 = 0;
}
if (p3_4 == 0) {
p3_4 = 0;
}
}
checking();
} else {
sunglass3._x = 623.7;
sunglass3._y = 392.4;
sunflag = 0;
}
};
sunglass4.onPress = function () {
startDrag (sunglass4);
};
sunglass4.onRelease = function () {
stopDrag();
if (sunglass4.hitTest(sun)) {
resetsun();
sunglass4._x = 362.9;
sunglass4._y = 232.9;
sunflag = 4;
if (flag == 1) {
if (p1_1 == 0) {
p1_1 = 0;
}
if (p1_2 == 0) {
p1_2 = 0;
}
if (p1_3 == 0) {
p1_3 = 0;
}
if (p1_4 == 0) {
p1_4 = 0;
}
} else if (flag == 2) {
p2_2 = 1;
} else if (flag == 3) {
if (p3_1 == 0) {
p3_1 = 0;
}
if (p3_2 == 0) {
p3_2 = 0;
}
if (p3_3 == 0) {
p3_3 = 0;
}
if (p3_4 == 0) {
p3_4 = 0;
}
}
checking();
} else {
sunglass4._x = 566.1;
sunglass4._y = 427.6;
sunflag = 0;
}
};
sunglass5.onPress = function () {
startDrag (sunglass5);
};
sunglass5.onRelease = function () {
stopDrag();
if (sunglass5.hitTest(sun)) {
resetsun();
sunglass5._x = 360.1;
sunglass5._y = 231.8;
sunflag = 5;
if (flag == 1) {
if (p1_1 == 0) {
p1_1 = 0;
}
if (p1_2 == 0) {
p1_2 = 0;
}
if (p1_3 == 0) {
p1_3 = 0;
}
if (p1_4 == 0) {
p1_4 = 0;
}
} else if (flag == 2) {
if (p2_1 == 0) {
p2_1 = 0;
}
if (p2_2 == 0) {
p2_2 = 0;
}
if (p2_3 == 0) {
p2_3 = 0;
}
if (p2_4 == 0) {
p2_4 = 0;
}
} else if (flag == 3) {
if (p3_1 == 0) {
p3_1 = 0;
}
if (p3_2 == 0) {
p3_2 = 0;
}
if (p3_3 == 0) {
p3_3 = 0;
}
if (p3_4 == 0) {
p3_4 = 0;
}
}
checking();
} else {
sunglass5._x = 676.8;
sunglass5._y = 427.6;
sunflag = 0;
}
};
ribbon1.onPress = function () {
startDrag (ribbon1);
};
ribbon1.onRelease = function () {
stopDrag();
if (ribbon1.hitTest(rib)) {
resetrib();
ribbon1._x = 351.1;
ribbon1._y = 156.6;
ribflag = 1;
if (flag == 1) {
if (p1_1 == 0) {
p1_1 = 0;
}
if (p1_2 == 0) {
p1_2 = 0;
}
if (p1_3 == 0) {
p1_3 = 0;
}
if (p1_4 == 0) {
p1_4 = 0;
}
} else if (flag == 2) {
if (p2_1 == 0) {
p2_1 = 0;
}
if (p2_2 == 0) {
p2_2 = 0;
}
if (p2_3 == 0) {
p2_3 = 0;
}
if (p2_4 == 0) {
p2_4 = 0;
}
} else if (flag == 3) {
if (p3_1 == 0) {
p3_1 = 0;
}
if (p3_2 == 0) {
p3_2 = 0;
}
if (p3_3 == 0) {
p3_3 = 0;
}
if (p3_4 == 0) {
p3_4 = 0;
}
}
checking();
} else {
ribbon1._x = 566.1;
ribbon1._y = 133.3;
ribflag = 0;
}
};
ribbon2.onPress = function () {
startDrag (ribbon2);
};
ribbon2.onRelease = function () {
stopDrag();
if (ribbon2.hitTest(rib)) {
resetrib();
ribbon2._x = 387.8;
ribbon2._y = 161.8;
ribflag = 2;
if (flag == 1) {
p1_3 = 1;
} else if (flag == 2) {
if (p2_1 == 0) {
p2_1 = 0;
}
if (p2_2 == 0) {
p2_2 = 0;
}
if (p2_3 == 0) {
p2_3 = 0;
}
if (p2_4 == 0) {
p2_4 = 0;
}
} else if (flag == 3) {
if (p3_1 == 0) {
p3_1 = 0;
}
if (p3_2 == 0) {
p3_2 = 0;
}
if (p3_3 == 0) {
p3_3 = 0;
}
if (p3_4 == 0) {
p3_4 = 0;
}
}
checking();
} else {
ribbon2._x = 687.5;
ribbon2._y = 133.3;
ribflag = 0;
}
};
ribbon3.onPress = function () {
startDrag (ribbon3);
};
ribbon3.onRelease = function () {
stopDrag();
if (ribbon3.hitTest(rib)) {
resetrib();
ribbon3._x = 353.3;
ribbon3._y = 134.8;
ribflag = 3;
if (flag == 1) {
if (p1_1 == 0) {
p1_1 = 0;
}
if (p1_2 == 0) {
p1_2 = 0;
}
if (p1_3 == 0) {
p1_3 = 0;
}
if (p1_4 == 0) {
p1_4 = 0;
}
} else if (flag == 2) {
p2_3 = 1;
} else if (flag == 3) {
if (p3_1 == 0) {
p3_1 = 0;
}
if (p3_2 == 0) {
p3_2 = 0;
}
if (p3_3 == 0) {
p3_3 = 0;
}
if (p3_4 == 0) {
p3_4 = 0;
}
}
checking();
} else {
ribbon3._x = 615;
ribbon3._y = 185;
ribflag = 0;
}
};
ribbon4.onPress = function () {
startDrag (ribbon4);
};
ribbon4.onRelease = function () {
stopDrag();
if (ribbon4.hitTest(rib)) {
resetrib();
ribbon4._x = 352.1;
ribbon4._y = 153.4;
ribflag = 4;
if (flag == 1) {
if (p1_1 == 0) {
p1_1 = 0;
}
if (p1_2 == 0) {
p1_2 = 0;
}
if (p1_3 == 0) {
p1_3 = 0;
}
if (p1_4 == 0) {
p1_4 = 0;
}
} else if (flag == 2) {
if (p2_1 == 0) {
p2_1 = 0;
}
if (p2_2 == 0) {
p2_2 = 0;
}
if (p2_3 == 0) {
p2_3 = 0;
}
if (p2_4 == 0) {
p2_4 = 0;
}
} else if (flag == 3) {
if (p3_1 == 0) {
p3_1 = 0;
}
if (p3_2 == 0) {
p3_2 = 0;
}
if (p3_3 == 0) {
p3_3 = 0;
}
if (p3_4 == 0) {
p3_4 = 0;
}
}
checking();
} else {
ribbon4._x = 574;
ribbon4._y = 263.8;
ribflag = 0;
}
};
ribbon5.onPress = function () {
startDrag (ribbon5);
};
ribbon5.onRelease = function () {
stopDrag();
if (ribbon5.hitTest(rib)) {
resetrib();
ribbon5._x = 340.6;
ribbon5._y = 182;
ribflag = 5;
if (flag == 1) {
if (p1_1 == 0) {
p1_1 = 0;
}
if (p1_2 == 0) {
p1_2 = 0;
}
if (p1_3 == 0) {
p1_3 = 0;
}
if (p1_4 == 0) {
p1_4 = 0;
}
} else if (flag == 2) {
if (p2_1 == 0) {
p2_1 = 0;
}
if (p2_2 == 0) {
p2_2 = 0;
}
if (p2_3 == 0) {
p2_3 = 0;
}
if (p2_4 == 0) {
p2_4 = 0;
}
} else if (flag == 3) {
p3_3 = 1;
}
checking();
} else {
ribbon5._x = 724.6;
ribbon5._y = 263.8;
ribflag = 0;
}
};
jewel1.onPress = function () {
startDrag (jewel1);
};
jewel1.onRelease = function () {
stopDrag();
if (jewel1.hitTest(jclip)) {
resetjewel();
jewel1._x = 349.8;
jewel1._y = 328.6;
jewelflag = 1;
if (flag == 1) {
if (p1_1 == 0) {
p1_1 = 0;
}
if (p1_2 == 0) {
p1_2 = 0;
}
if (p1_3 == 0) {
p1_3 = 0;
}
if (p1_4 == 0) {
p1_4 = 0;
}
} else if (flag == 2) {
p2_4 = 1;
} else if (flag == 3) {
if (p3_1 == 0) {
p3_1 = 0;
}
if (p3_2 == 0) {
p3_2 = 0;
}
if (p3_3 == 0) {
p3_3 = 0;
}
if (p3_4 == 0) {
p3_4 = 0;
}
}
checking();
} else {
jewel1._x = 126.3;
jewel1._y = 323.6;
jewelflag = 0;
}
};
jewel2.onPress = function () {
startDrag (jewel2);
};
jewel2.onRelease = function () {
stopDrag();
if (jewel2.hitTest(jclip)) {
resetjewel();
jewel2._x = 374.5;
jewel2._y = 315;
jewelflag = 2;
if (flag == 1) {
p1_4 = 1;
} else if (flag == 2) {
if (p2_1 == 0) {
p2_1 = 0;
}
if (p2_2 == 0) {
p2_2 = 0;
}
if (p2_3 == 0) {
p2_3 = 0;
}
if (p2_4 == 0) {
p2_4 = 0;
}
} else if (flag == 3) {
if (p3_1 == 0) {
p3_1 = 0;
}
if (p3_2 == 0) {
p3_2 = 0;
}
if (p3_3 == 0) {
p3_3 = 0;
}
if (p3_4 == 0) {
p3_4 = 0;
}
}
checking();
} else {
jewel2._x = 103.7;
jewel2._y = 169.2;
jewelflag = 0;
}
};
jewel3.onPress = function () {
startDrag (jewel3);
};
jewel3.onRelease = function () {
stopDrag();
if (jewel3.hitTest(jclip)) {
resetjewel();
jewel3._x = 374.9;
jewel3._y = 314.3;
jewelflag = 3;
if (flag == 1) {
if (p1_1 == 0) {
p1_1 = 0;
}
if (p1_2 == 0) {
p1_2 = 0;
}
if (p1_3 == 0) {
p1_3 = 0;
}
if (p1_4 == 0) {
p1_4 = 0;
}
} else if (flag == 2) {
if (p2_1 == 0) {
p2_1 = 0;
}
if (p2_2 == 0) {
p2_2 = 0;
}
if (p2_3 == 0) {
p2_3 = 0;
}
if (p2_4 == 0) {
p2_4 = 0;
}
} else if (flag == 3) {
p3_4 = 1;
}
checking();
} else {
jewel3._x = 180.6;
jewel3._y = 175.9;
jewelflag = 0;
}
};
jewel4.onPress = function () {
startDrag (jewel4);
};
jewel4.onRelease = function () {
stopDrag();
if (jewel4.hitTest(jclip)) {
resetjewel();
jewel4._x = 376.4;
jewel4._y = 316.5;
jewelflag = 4;
if (flag == 1) {
if (p1_1 == 0) {
p1_1 = 0;
}
if (p1_2 == 0) {
p1_2 = 0;
}
if (p1_3 == 0) {
p1_3 = 0;
}
if (p1_4 == 0) {
p1_4 = 0;
}
} else if (flag == 2) {
if (p2_1 == 0) {
p2_1 = 0;
}
if (p2_2 == 0) {
p2_2 = 0;
}
if (p2_3 == 0) {
p2_3 = 0;
}
if (p2_4 == 0) {
p2_4 = 0;
}
} else if (flag == 3) {
if (p3_1 == 0) {
p3_1 = 0;
}
if (p3_2 == 0) {
p3_2 = 0;
}
if (p3_3 == 0) {
p3_3 = 0;
}
if (p3_4 == 0) {
p3_4 = 0;
}
}
checking();
} else {
jewel4._x = 29.1;
jewel4._y = 173.2;
jewelflag = 0;
}
};
jewel5.onPress = function () {
startDrag (jewel5);
};
jewel5.onRelease = function () {
stopDrag();
if (jewel5.hitTest(jclip)) {
resetjewel();
jewel5._x = 366.8;
jewel5._y = 321.3;
jewelflag = 5;
if (flag == 1) {
if (p1_1 == 0) {
p1_1 = 0;
}
if (p1_2 == 0) {
p1_2 = 0;
}
if (p1_3 == 0) {
p1_3 = 0;
}
if (p1_4 == 0) {
p1_4 = 0;
}
} else if (flag == 2) {
if (p2_1 == 0) {
p2_1 = 0;
}
if (p2_2 == 0) {
p2_2 = 0;
}
if (p2_3 == 0) {
p2_3 = 0;
}
if (p2_4 == 0) {
p2_4 = 0;
}
} else if (flag == 3) {
if (p3_1 == 0) {
p3_1 = 0;
}
if (p3_2 == 0) {
p3_2 = 0;
}
if (p3_3 == 0) {
p3_3 = 0;
}
if (p3_4 == 0) {
p3_4 = 0;
}
}
checking();
} else {
jewel5._x = 24.4;
jewel5._y = 301.9;
jewelflag = 0;
}
};
btnback.onRelease = function () {
gotoAndPlay ("third");
};
btnback1.onRelease = function () {
gotoAndPlay ("third");
};
btnmoregames1.onRelease = function () {
getURL (btnUrl + "game-moregames-betweenscenes", "_blank");
};
btnlogo.onRelease = function () {
getURL (btnUrl + "game-logo-tl", "_blank");
};
btncompleted.onRelease = function () {
if (flag == 1) {
if ((((p1_1 == 1) && (p1_2 == 1)) && (p1_3 == 1)) && (p1_4 == 1)) {
nextpic._visible = true;
btnnextpict._visible = true;
sis = 0;
com = 0;
cli = 0;
} else {
btntry._visible = true;
youfailed._visible = true;
clearInterval(intervalID);
}
} else if (flag == 2) {
if ((((p2_1 == 1) && (p2_2 == 1)) && (p2_3 == 1)) && (p2_4 == 1)) {
nextpic._visible = true;
btnnextpict._visible = true;
sis = 0;
com = 0;
cli = 0;
} else {
btntry._visible = true;
youfailed._visible = true;
clearInterval(intervalID);
}
} else if (flag == 3) {
if ((((p3_1 == 1) && (p3_2 == 1)) && (p3_3 == 1)) && (p3_4 == 1)) {
clearInterval(intervalID);
msg12._visible = true;
btncontinue._visible = true;
btnmoregames1._visible = true;
sis = 0;
com = 0;
cli = 0;
} else {
btntry._visible = true;
youfailed._visible = true;
clearInterval(intervalID);
}
}
};
btncontinue.onRelease = function () {
gotoAndPlay ("challeng3");
};
btndone1.onRelease = function () {
newnote._visible = true;
newclose._visible = true;
};
newclose.onRelease = function () {
newnote._visible = false;
newclose._visible = false;
};
btnnextpict.onRelease = function () {
if (flag == 1) {
flag = 2;
p1._alpha = 25;
p2._alpha = 100;
p3._alpha = 25;
} else if (flag == 2) {
flag = 3;
p1._alpha = 25;
p2._alpha = 25;
p3._alpha = 100;
}
btntry._visible = false;
youfailed._visible = false;
nextpic._visible = false;
btnnextpict._visible = false;
newnote._visible = false;
newclose._visible = false;
msg1._visible = false;
btncontinue._visible = false;
btnmoregames1._visible = false;
reset();
hair1._x = 347.6;
hair1._y = 148.7;
resetrib();
resetsun();
resetjewel();
};
btntry.onRelease = function () {
btntry._visible = false;
youfailed._visible = false;
nextpic._visible = false;
btnnextpict._visible = false;
newnote._visible = false;
newclose._visible = false;
msg1._visible = false;
btncontinue._visible = false;
btnmoregames1._visible = false;
tim = 60;
flag = 1;
p1._alpha = 100;
p2._alpha = 25;
p3._alpha = 25;
p1_1 = 0;
p1_2 = 0;
p2_1 = 0;
p2_2 = 0;
p3_1 = 0;
p3_2 = 0;
reset();
hair1._x = 347.6;
hair1._y = 148.7;
resetrib();
resetsun();
resetjewel();
intervalID = 0;
sis = 0;
com = 0;
cli = 0;
intervalID = setInterval(updateTimer, 1000);
};
Frame 310
stop();
Frame 313
function updateTimer() {
tim = tim - 1;
if (tim == 0) {
btntry._visible = true;
youfailed._visible = true;
clearInterval(intervalID);
} else if (tim <= 9) {
txts.text = "00:0" + String(tim);
} else {
txts.text = "00:" + String(tim);
}
}
function reset() {
hair1._x = 1000;
hair1._y = 1000;
dryerhair._x = 1000;
dryerhair._y = 1000;
cuthair1._x = 1000;
cuthair1._y = 1000;
cuthair2._x = 1000;
cuthair2._y = 1000;
h1._x = 1000;
h1._y = 1000;
h2._x = 1000;
h2._y = 1000;
h3._x = 1000;
h3._y = 1000;
cliphair1._x = 1000;
cliphair1._y = 1000;
cliphair2._x = 1000;
cliphair2._y = 1000;
cliphair3._x = 1000;
cliphair3._y = 1000;
}
function resetsun() {
sunglass1._x = 664.6;
sunglass1._y = 349.7;
sunglass2._x = 670.6;
sunglass2._y = 354.1;
sunglass3._x = 623.7;
sunglass3._y = 392.4;
sunglass4._x = 566.1;
sunglass4._y = 427.6;
sunglass5._x = 676.8;
sunglass5._y = 427.6;
}
function resetrib() {
ribbon1._x = 566.1;
ribbon1._y = 133.3;
ribbon2._x = 687.5;
ribbon2._y = 133.3;
ribbon3._x = 615;
ribbon3._y = 185;
ribbon4._x = 574;
ribbon4._y = 263.8;
ribbon5._x = 724.6;
ribbon5._y = 263.8;
}
function resetjewel() {
jewel1._x = 126.3;
jewel1._y = 323.6;
jewel2._x = 103.7;
jewel2._y = 169.2;
jewel3._x = 180.6;
jewel3._y = 175.9;
jewel4._x = 29.1;
jewel4._y = 173.2;
jewel5._x = 24.4;
jewel5._y = 301.9;
}
function falses() {
dryer._visible = false;
sissor._visible = false;
comb._visible = false;
clip._visible = false;
reck1._visible = false;
reck2._visible = false;
ribbon1._visible = false;
ribbon2._visible = false;
ribbon3._visible = false;
ribbon4._visible = false;
ribbon5._visible = false;
sunglass1._visible = false;
sunglass2._visible = false;
sunglass3._visible = false;
sunglass4._visible = false;
sunglass5._visible = false;
jewel1._visible = false;
jewel2._visible = false;
jewel3._visible = false;
jewel4._visible = false;
jewel5._visible = false;
level3._visible = false;
btnmoregames._visible = false;
btnback._visible = false;
msg13._visible = true;
btncontinue._visible = true;
btnmoregames1._visible = true;
}
stop();
btntry._visible = false;
youfailed._visible = false;
nextpic._visible = false;
btnnextpict._visible = false;
newnote._visible = false;
newclose._visible = false;
reset();
btnnote._visible = false;
btnclose1._visible = false;
reset();
hair1._x = 347.6;
hair1._y = 148.7;
dryer._visible = true;
sissor._visible = true;
comb._visible = true;
clip._visible = true;
reck1._visible = true;
reck2._visible = true;
ribbon1._visible = true;
ribbon2._visible = true;
ribbon3._visible = true;
ribbon4._visible = true;
ribbon5._visible = true;
sunglass1._visible = true;
sunglass2._visible = true;
sunglass3._visible = true;
sunglass4._visible = true;
sunglass5._visible = true;
jewel1._visible = true;
jewel2._visible = true;
jewel3._visible = true;
jewel4._visible = true;
jewel5._visible = true;
btnshow._visible = true;
btnmoregames._visible = true;
btnback._visible = true;
ob3._visible = false;
btnback1._visible = false;
btnreplay._visible = false;
btnmoregames1._visible = false;
resetrib();
resetsun();
resetjewel();
msg13._visible = false;
btncontinue._visible = false;
btnmoregames1._visible = false;
var tim = 60;
var flag = 1;
p1._alpha = 100;
p2._alpha = 25;
p3._alpha = 25;
var p1_1 = 0;
var p1_2 = 0;
var p1_3 = 0;
var p1_4 = 0;
var p2_1 = 0;
var p2_2 = 0;
var p2_3 = 0;
var p2_4 = 0;
var p3_1 = 1;
var p3_2 = 0;
var p3_3 = 0;
var p3_4 = 0;
clearInterval(intervalID);
var intervalID = setInterval(updateTimer, 1000);
var sis = 0;
var com = 0;
var cli = 0;
var ribflag = 0;
var sunflag = 0;
dryer.onPress = function () {
startDrag (dryer);
};
dryer.onRelease = function () {
stopDrag();
if (dryer.hitTest(mclip)) {
reset();
dryerhair._x = 272.9;
dryerhair._y = 148.7;
_root.dryerhair.gotoAndPlay("f1");
dryer._x = 38;
dryer._y = 424.3;
sis = 0;
com = 0;
cli = 0;
if (flag == 1) {
if (p1_1 == 0) {
p1_1 = 0;
}
if (p1_2 == 0) {
p1_2 = 0;
}
if (p1_3 == 0) {
p1_3 = 0;
}
if (p1_4 == 0) {
p1_4 = 0;
}
} else if (flag == 2) {
if (p2_1 == 0) {
p2_1 = 0;
}
if (p2_2 == 0) {
p2_2 = 0;
}
if (p2_3 == 0) {
p2_3 = 0;
}
if (p2_4 == 0) {
p2_4 = 0;
}
} else if (flag == 3) {
if (p3_1 == 0) {
p3_1 = 0;
}
if (p3_2 == 0) {
p3_2 = 0;
}
if (p3_3 == 0) {
p3_3 = 0;
}
if (p3_4 == 0) {
p3_4 = 0;
}
}
checking();
} else {
dryer._x = 38;
dryer._y = 424.3;
}
};
sissor.onPress = function () {
startDrag (sissor);
};
sissor.onRelease = function () {
stopDrag();
if (sissor.hitTest(mclip)) {
if (sis == 0) {
reset();
cuthair1._x = 390.7;
cuthair1._y = 155.8;
_root.cuthair1.gotoAndPlay("f2");
sissor._x = 156.8;
sissor._y = 424.1;
sis = 1;
com = 1;
cli = 1;
if (flag == 1) {
if (p1_1 == 0) {
p1_1 = 0;
}
if (p1_2 == 0) {
p1_2 = 0;
}
if (p1_3 == 0) {
p1_3 = 0;
}
if (p1_4 == 0) {
p1_4 = 0;
}
} else if (flag == 2) {
p2_1 = 1;
} else if (flag == 3) {
if (p3_1 == 0) {
p3_1 = 0;
}
if (p3_2 == 0) {
p3_2 = 0;
}
if (p3_3 == 0) {
p3_3 = 0;
}
if (p3_4 == 0) {
p3_4 = 0;
}
}
checking();
} else if (sis == 1) {
reset();
cuthair2._x = 338.6;
cuthair2._y = 144.4;
_root.cuthair2.gotoAndPlay("f3");
sissor._x = 156.8;
sissor._y = 424.1;
com = 2;
cli = 2;
if (flag == 1) {
if (p1_1 == 0) {
p1_1 = 0;
}
if (p1_2 == 0) {
p1_2 = 0;
}
if (p1_3 == 0) {
p1_3 = 0;
}
if (p1_4 == 0) {
p1_4 = 0;
}
} else if (flag == 2) {
if (p2_1 == 0) {
p2_1 = 0;
}
if (p2_2 == 0) {
p2_2 = 0;
}
if (p2_3 == 0) {
p2_3 = 0;
}
if (p2_4 == 0) {
p2_4 = 0;
}
} else if (flag == 3) {
if (p3_1 == 0) {
p3_1 = 0;
}
if (p3_2 == 0) {
p3_2 = 0;
}
if (p3_3 == 0) {
p3_3 = 0;
}
if (p3_4 == 0) {
p3_4 = 0;
}
}
checking();
}
} else {
sissor._x = 156.8;
sissor._y = 424.1;
}
};
comb.onPress = function () {
startDrag (comb);
};
comb.onRelease = function () {
stopDrag();
if (comb.hitTest(mclip)) {
if (com == 0) {
reset();
h1._x = 347.6;
h1._y = 132.9;
_root.h1.gotoAndPlay("f4");
comb._x = 197.8;
comb._y = 503.4;
sis = 0;
cli = 0;
if (flag == 1) {
if (p1_1 == 0) {
p1_1 = 0;
}
if (p1_2 == 0) {
p1_2 = 0;
}
if (p1_3 == 0) {
p1_3 = 0;
}
if (p1_4 == 0) {
p1_4 = 0;
}
} else if (flag == 2) {
if (p2_1 == 0) {
p2_1 = 0;
}
if (p2_2 == 0) {
p2_2 = 0;
}
if (p2_3 == 0) {
p2_3 = 0;
}
if (p2_4 == 0) {
p2_4 = 0;
}
} else if (flag == 3) {
if (p3_1 == 0) {
p3_1 = 0;
}
if (p3_2 == 0) {
p3_2 = 0;
}
if (p3_3 == 0) {
p3_3 = 0;
}
if (p3_4 == 0) {
p3_4 = 0;
}
}
checking();
} else if (com == 1) {
reset();
h2._x = 343.6;
h2._y = 143.7;
_root.h2.gotoAndPlay("f5");
comb._x = 197.8;
comb._y = 503.4;
sis = 1;
cli = 1;
if (flag == 1) {
if (p1_1 == 0) {
p1_1 = 0;
}
if (p1_2 == 0) {
p1_2 = 0;
}
if (p1_3 == 0) {
p1_3 = 0;
}
if (p1_4 == 0) {
p1_4 = 0;
}
} else if (flag == 2) {
if (p2_1 == 0) {
p2_1 = 0;
}
if (p2_2 == 0) {
p2_2 = 0;
}
if (p2_3 == 0) {
p2_3 = 0;
}
if (p2_4 == 0) {
p2_4 = 0;
}
} else if (flag == 3) {
if (p3_1 == 0) {
p3_1 = 0;
}
if (p3_2 == 0) {
p3_2 = 0;
}
if (p3_3 == 0) {
p3_3 = 0;
}
if (p3_4 == 0) {
p3_4 = 0;
}
}
checking();
} else if (com == 2) {
reset();
h3._x = 338.6;
h3._y = 144.4;
_root.h3.gotoAndPlay("f6");
comb._x = 197.8;
comb._y = 503.4;
if (flag == 1) {
if (p1_1 == 0) {
p1_1 = 0;
}
if (p1_2 == 0) {
p1_2 = 0;
}
if (p1_3 == 0) {
p1_3 = 0;
}
if (p1_4 == 0) {
p1_4 = 0;
}
} else if (flag == 2) {
if (p2_1 == 0) {
p2_1 = 0;
}
if (p2_2 == 0) {
p2_2 = 0;
}
if (p2_3 == 0) {
p2_3 = 0;
}
if (p2_4 == 0) {
p2_4 = 0;
}
} else if (flag == 3) {
if (p3_1 == 0) {
p3_1 = 0;
}
if (p3_2 == 0) {
p3_2 = 0;
}
if (p3_3 == 0) {
p3_3 = 0;
}
if (p3_4 == 0) {
p3_4 = 0;
}
}
checking();
}
}
};
clip.onPress = function () {
startDrag (clip);
};
clip.onRelease = function () {
stopDrag();
if (clip.hitTest(mclip)) {
if (cli == 0) {
reset();
cliphair1._x = 304.6;
cliphair1._y = 137.5;
_root.cliphair1.gotoAndPlay("f6");
clip._x = 58.6;
clip._y = 503.5;
sis = 0;
if (flag == 1) {
if (p1_1 == 0) {
p1_1 = 0;
}
if (p1_2 == 0) {
p1_2 = 0;
}
if (p1_3 == 0) {
p1_3 = 0;
}
if (p1_4 == 0) {
p1_4 = 0;
}
} else if (flag == 2) {
if (p2_1 == 0) {
p2_1 = 0;
}
if (p2_2 == 0) {
p2_2 = 0;
}
if (p2_3 == 0) {
p2_3 = 0;
}
if (p2_4 == 0) {
p2_4 = 0;
}
} else if (flag == 3) {
p3_1 = 1;
}
checking();
} else if (cli == 1) {
reset();
cliphair2._x = 323.5;
cliphair2._y = 142.5;
_root.cliphair2.gotoAndPlay("f7");
clip._x = 58.6;
clip._y = 503.5;
sis = 1;
if (flag == 1) {
if (p1_1 == 0) {
p1_1 = 0;
}
if (p1_2 == 0) {
p1_2 = 0;
}
if (p1_3 == 0) {
p1_3 = 0;
}
if (p1_4 == 0) {
p1_4 = 0;
}
} else if (flag == 2) {
if (p2_1 == 0) {
p2_1 = 0;
}
if (p2_2 == 0) {
p2_2 = 0;
}
if (p2_3 == 0) {
p2_3 = 0;
}
if (p2_4 == 0) {
p2_4 = 0;
}
} else if (flag == 3) {
if (p3_1 == 0) {
p3_1 = 0;
}
if (p3_2 == 0) {
p3_2 = 0;
}
if (p3_3 == 0) {
p3_3 = 0;
}
if (p3_4 == 0) {
p3_4 = 0;
}
}
checking();
} else if (cli == 2) {
reset();
cliphair3._x = 320.6;
cliphair3._y = 139.5;
_root.cliphair3.gotoAndPlay("f8");
clip._x = 58.6;
clip._y = 503.5;
sis = 2;
if (flag == 1) {
p1_1 = 1;
} else if (flag == 2) {
if (p2_1 == 0) {
p2_1 = 0;
}
if (p2_2 == 0) {
p2_2 = 0;
}
if (p2_3 == 0) {
p2_3 = 0;
}
if (p2_4 == 0) {
p2_4 = 0;
}
} else if (flag == 3) {
if (p3_1 == 0) {
p3_1 = 0;
}
if (p3_2 == 0) {
p3_2 = 0;
}
if (p3_3 == 0) {
p3_3 = 0;
}
if (p3_4 == 0) {
p3_4 = 0;
}
}
checking();
}
}
};
sunglass1.onPress = function () {
startDrag (sunglass1);
};
sunglass1.onRelease = function () {
stopDrag();
if (sunglass1.hitTest(sun)) {
resetsun();
sunglass1._x = 460.5;
sunglass1._y = 230.1;
sunflag = 1;
if (flag == 1) {
if (p1_1 == 0) {
p1_1 = 0;
}
if (p1_2 == 0) {
p1_2 = 0;
}
if (p1_3 == 0) {
p1_3 = 0;
}
if (p1_4 == 0) {
p1_4 = 0;
}
} else if (flag == 2) {
if (p2_1 == 0) {
p2_1 = 0;
}
if (p2_2 == 0) {
p2_2 = 0;
}
if (p2_3 == 0) {
p2_3 = 0;
}
if (p2_4 == 0) {
p2_4 = 0;
}
} else if (flag == 3) {
if (p3_1 == 0) {
p3_1 = 0;
}
if (p3_2 == 0) {
p3_2 = 0;
}
if (p3_3 == 0) {
p3_3 = 0;
}
if (p3_4 == 0) {
p3_4 = 0;
}
}
checking();
} else {
sunglass1._x = 664.6;
sunglass1._y = 349.7;
sunflag = 0;
}
};
sunglass2.onPress = function () {
startDrag (sunglass2);
};
sunglass2.onRelease = function () {
stopDrag();
if (sunglass2.hitTest(sun)) {
resetsun();
sunglass2._x = 359.3;
sunglass2._y = 228.3;
sunflag = 2;
if (flag == 1) {
p1_2 = 1;
} else if (flag == 2) {
if (p2_1 == 0) {
p2_1 = 0;
}
if (p2_2 == 0) {
p2_2 = 0;
}
if (p2_3 == 0) {
p2_3 = 0;
}
if (p2_4 == 0) {
p2_4 = 0;
}
} else if (flag == 3) {
if (p3_1 == 0) {
p3_1 = 0;
}
if (p3_2 == 0) {
p3_2 = 0;
}
if (p3_3 == 0) {
p3_3 = 0;
}
if (p3_4 == 0) {
p3_4 = 0;
}
}
checking();
} else {
sunglass2._x = 670.6;
sunglass2._y = 354.1;
sunflag = 0;
}
};
sunglass3.onPress = function () {
startDrag (sunglass3);
};
sunglass3.onRelease = function () {
stopDrag();
if (sunglass3.hitTest(sun)) {
resetsun();
sunglass3._x = 362.9;
sunglass3._y = 231.4;
sunflag = 3;
if (flag == 1) {
if (p1_1 == 0) {
p1_1 = 0;
}
if (p1_2 == 0) {
p1_2 = 0;
}
if (p1_3 == 0) {
p1_3 = 0;
}
if (p1_4 == 0) {
p1_4 = 0;
}
} else if (flag == 2) {
if (p2_1 == 0) {
p2_1 = 0;
}
if (p2_2 == 0) {
p2_2 = 0;
}
if (p2_3 == 0) {
p2_3 = 0;
}
if (p2_4 == 0) {
p2_4 = 0;
}
} else if (flag == 3) {
p3_2 = 1;
}
checking();
} else {
sunglass3._x = 623.7;
sunglass3._y = 392.4;
sunflag = 0;
}
};
sunglass4.onPress = function () {
startDrag (sunglass4);
};
sunglass4.onRelease = function () {
stopDrag();
if (sunglass4.hitTest(sun)) {
resetsun();
sunglass4._x = 362.9;
sunglass4._y = 232.9;
sunflag = 4;
if (flag == 1) {
if (p1_1 == 0) {
p1_1 = 0;
}
if (p1_2 == 0) {
p1_2 = 0;
}
if (p1_3 == 0) {
p1_3 = 0;
}
if (p1_4 == 0) {
p1_4 = 0;
}
} else if (flag == 2) {
if (p2_1 == 0) {
p2_1 = 0;
}
if (p2_2 == 0) {
p2_2 = 0;
}
if (p2_3 == 0) {
p2_3 = 0;
}
if (p2_4 == 0) {
p2_4 = 0;
}
} else if (flag == 3) {
if (p3_1 == 0) {
p3_1 = 0;
}
if (p3_2 == 0) {
p3_2 = 0;
}
if (p3_3 == 0) {
p3_3 = 0;
}
if (p3_4 == 0) {
p3_4 = 0;
}
}
checking();
} else {
sunglass4._x = 566.1;
sunglass4._y = 427.6;
sunflag = 0;
}
};
sunglass5.onPress = function () {
startDrag (sunglass5);
};
sunglass5.onRelease = function () {
stopDrag();
if (sunglass5.hitTest(sun)) {
resetsun();
sunglass5._x = 360.1;
sunglass5._y = 231.8;
sunflag = 5;
if (flag == 1) {
if (p1_1 == 0) {
p1_1 = 0;
}
if (p1_2 == 0) {
p1_2 = 0;
}
if (p1_3 == 0) {
p1_3 = 0;
}
if (p1_4 == 0) {
p1_4 = 0;
}
} else if (flag == 2) {
p2_2 = 1;
} else if (flag == 3) {
if (p3_1 == 0) {
p3_1 = 0;
}
if (p3_2 == 0) {
p3_2 = 0;
}
if (p3_3 == 0) {
p3_3 = 0;
}
if (p3_4 == 0) {
p3_4 = 0;
}
}
checking();
} else {
sunglass5._x = 676.8;
sunglass5._y = 427.6;
sunflag = 0;
}
};
ribbon1.onPress = function () {
startDrag (ribbon1);
};
ribbon1.onRelease = function () {
stopDrag();
if (ribbon1.hitTest(rib)) {
resetrib();
ribbon1._x = 351.1;
ribbon1._y = 156.6;
ribflag = 1;
if (flag == 1) {
if (p1_1 == 0) {
p1_1 = 0;
}
if (p1_2 == 0) {
p1_2 = 0;
}
if (p1_3 == 0) {
p1_3 = 0;
}
if (p1_4 == 0) {
p1_4 = 0;
}
} else if (flag == 2) {
p2_3 = 1;
} else if (flag == 3) {
p3_3 = 1;
}
checking();
} else {
ribbon1._x = 566.1;
ribbon1._y = 133.3;
ribflag = 0;
}
};
ribbon2.onPress = function () {
startDrag (ribbon2);
};
ribbon2.onRelease = function () {
stopDrag();
if (ribbon2.hitTest(rib)) {
resetrib();
ribbon2._x = 387.8;
ribbon2._y = 161.8;
ribflag = 2;
if (flag == 1) {
if (p1_1 == 0) {
p1_1 = 0;
}
if (p1_2 == 0) {
p1_2 = 0;
}
if (p1_3 == 0) {
p1_3 = 0;
}
if (p1_4 == 0) {
p1_4 = 0;
}
} else if (flag == 2) {
if (p2_1 == 0) {
p2_1 = 0;
}
if (p2_2 == 0) {
p2_2 = 0;
}
if (p2_3 == 0) {
p2_3 = 0;
}
if (p2_4 == 0) {
p2_4 = 0;
}
} else if (flag == 3) {
if (p3_1 == 0) {
p3_1 = 0;
}
if (p3_2 == 0) {
p3_2 = 0;
}
if (p3_3 == 0) {
p3_3 = 0;
}
if (p3_4 == 0) {
p3_4 = 0;
}
}
checking();
} else {
ribbon2._x = 687.5;
ribbon2._y = 133.3;
ribflag = 0;
}
};
ribbon3.onPress = function () {
startDrag (ribbon3);
};
ribbon3.onRelease = function () {
stopDrag();
if (ribbon3.hitTest(rib)) {
resetrib();
ribbon3._x = 353.3;
ribbon3._y = 134.8;
ribflag = 3;
if (flag == 1) {
if (p1_1 == 0) {
p1_1 = 0;
}
if (p1_2 == 0) {
p1_2 = 0;
}
if (p1_3 == 0) {
p1_3 = 0;
}
if (p1_4 == 0) {
p1_4 = 0;
}
} else if (flag == 2) {
if (p2_1 == 0) {
p2_1 = 0;
}
if (p2_2 == 0) {
p2_2 = 0;
}
if (p2_3 == 0) {
p2_3 = 0;
}
if (p2_4 == 0) {
p2_4 = 0;
}
} else if (flag == 3) {
if (p3_1 == 0) {
p3_1 = 0;
}
if (p3_2 == 0) {
p3_2 = 0;
}
if (p3_3 == 0) {
p3_3 = 0;
}
if (p3_4 == 0) {
p3_4 = 0;
}
}
checking();
} else {
ribbon3._x = 615;
ribbon3._y = 185;
ribflag = 0;
}
};
ribbon4.onPress = function () {
startDrag (ribbon4);
};
ribbon4.onRelease = function () {
stopDrag();
if (ribbon4.hitTest(rib)) {
resetrib();
ribbon4._x = 352.1;
ribbon4._y = 153.4;
ribflag = 4;
if (flag == 1) {
p1_3 = 1;
} else if (flag == 2) {
if (p2_1 == 0) {
p2_1 = 0;
}
if (p2_2 == 0) {
p2_2 = 0;
}
if (p2_3 == 0) {
p2_3 = 0;
}
if (p2_4 == 0) {
p2_4 = 0;
}
} else if (flag == 3) {
if (p3_1 == 0) {
p3_1 = 0;
}
if (p3_2 == 0) {
p3_2 = 0;
}
if (p3_3 == 0) {
p3_3 = 0;
}
if (p3_4 == 0) {
p3_4 = 0;
}
}
checking();
} else {
ribbon4._x = 574;
ribbon4._y = 263.8;
ribflag = 0;
}
};
ribbon5.onPress = function () {
startDrag (ribbon5);
};
ribbon5.onRelease = function () {
stopDrag();
if (ribbon5.hitTest(rib)) {
resetrib();
ribbon5._x = 340.6;
ribbon5._y = 182;
ribflag = 5;
if (flag == 1) {
if (p1_1 == 0) {
p1_1 = 0;
}
if (p1_2 == 0) {
p1_2 = 0;
}
if (p1_3 == 0) {
p1_3 = 0;
}
if (p1_4 == 0) {
p1_4 = 0;
}
} else if (flag == 2) {
if (p2_1 == 0) {
p2_1 = 0;
}
if (p2_2 == 0) {
p2_2 = 0;
}
if (p2_3 == 0) {
p2_3 = 0;
}
if (p2_4 == 0) {
p2_4 = 0;
}
} else if (flag == 3) {
if (p3_1 == 0) {
p3_1 = 0;
}
if (p3_2 == 0) {
p3_2 = 0;
}
if (p3_3 == 0) {
p3_3 = 0;
}
if (p3_4 == 0) {
p3_4 = 0;
}
}
checking();
} else {
ribbon5._x = 724.6;
ribbon5._y = 263.8;
ribflag = 0;
}
};
jewel1.onPress = function () {
startDrag (jewel1);
};
jewel1.onRelease = function () {
stopDrag();
if (jewel1.hitTest(jclip)) {
resetjewel();
jewel1._x = 349.8;
jewel1._y = 328.6;
jewelflag = 1;
if (flag == 1) {
if (p1_1 == 0) {
p1_1 = 0;
}
if (p1_2 == 0) {
p1_2 = 0;
}
if (p1_3 == 0) {
p1_3 = 0;
}
if (p1_4 == 0) {
p1_4 = 0;
}
} else if (flag == 2) {
if (p2_1 == 0) {
p2_1 = 0;
}
if (p2_2 == 0) {
p2_2 = 0;
}
if (p2_3 == 0) {
p2_3 = 0;
}
if (p2_4 == 0) {
p2_4 = 0;
}
} else if (flag == 3) {
if (p3_1 == 0) {
p3_1 = 0;
}
if (p3_2 == 0) {
p3_2 = 0;
}
if (p3_3 == 0) {
p3_3 = 0;
}
if (p3_4 == 0) {
p3_4 = 0;
}
}
checking();
} else {
jewel1._x = 126.3;
jewel1._y = 323.6;
jewelflag = 0;
}
};
jewel2.onPress = function () {
startDrag (jewel2);
};
jewel2.onRelease = function () {
stopDrag();
if (jewel2.hitTest(jclip)) {
resetjewel();
jewel2._x = 374.5;
jewel2._y = 315;
jewelflag = 2;
if (flag == 1) {
p1_4 = 1;
} else if (flag == 2) {
if (p2_1 == 0) {
p2_1 = 0;
}
if (p2_2 == 0) {
p2_2 = 0;
}
if (p2_3 == 0) {
p2_3 = 0;
}
if (p2_4 == 0) {
p2_4 = 0;
}
} else if (flag == 3) {
if (p3_1 == 0) {
p3_1 = 0;
}
if (p3_2 == 0) {
p3_2 = 0;
}
if (p3_3 == 0) {
p3_3 = 0;
}
if (p3_4 == 0) {
p3_4 = 0;
}
}
checking();
} else {
jewel2._x = 103.7;
jewel2._y = 169.2;
jewelflag = 0;
}
};
jewel3.onPress = function () {
startDrag (jewel3);
};
jewel3.onRelease = function () {
stopDrag();
if (jewel3.hitTest(jclip)) {
resetjewel();
jewel3._x = 374.9;
jewel3._y = 314.3;
jewelflag = 3;
if (flag == 1) {
if (p1_1 == 0) {
p1_1 = 0;
}
if (p1_2 == 0) {
p1_2 = 0;
}
if (p1_3 == 0) {
p1_3 = 0;
}
if (p1_4 == 0) {
p1_4 = 0;
}
} else if (flag == 2) {
if (p2_1 == 0) {
p2_1 = 0;
}
if (p2_2 == 0) {
p2_2 = 0;
}
if (p2_3 == 0) {
p2_3 = 0;
}
if (p2_4 == 0) {
p2_4 = 0;
}
} else if (flag == 3) {
if (p3_1 == 0) {
p3_1 = 0;
}
if (p3_2 == 0) {
p3_2 = 0;
}
if (p3_3 == 0) {
p3_3 = 0;
}
if (p3_4 == 0) {
p3_4 = 0;
}
}
checking();
} else {
jewel3._x = 180.6;
jewel3._y = 175.9;
jewelflag = 0;
}
};
jewel4.onPress = function () {
startDrag (jewel4);
};
jewel4.onRelease = function () {
stopDrag();
if (jewel4.hitTest(jclip)) {
resetjewel();
jewel4._x = 376.4;
jewel4._y = 316.5;
jewelflag = 4;
if (flag == 1) {
if (p1_1 == 0) {
p1_1 = 0;
}
if (p1_2 == 0) {
p1_2 = 0;
}
if (p1_3 == 0) {
p1_3 = 0;
}
if (p1_4 == 0) {
p1_4 = 0;
}
} else if (flag == 2) {
p2_4 = 1;
} else if (flag == 3) {
if (p3_1 == 0) {
p3_1 = 0;
}
if (p3_2 == 0) {
p3_2 = 0;
}
if (p3_3 == 0) {
p3_3 = 0;
}
if (p3_4 == 0) {
p3_4 = 0;
}
}
checking();
} else {
jewel4._x = 29.1;
jewel4._y = 173.2;
jewelflag = 0;
}
};
jewel5.onPress = function () {
startDrag (jewel5);
};
jewel5.onRelease = function () {
stopDrag();
if (jewel5.hitTest(jclip)) {
resetjewel();
jewel5._x = 366.8;
jewel5._y = 321.3;
jewelflag = 5;
if (flag == 1) {
if (p1_1 == 0) {
p1_1 = 0;
}
if (p1_2 == 0) {
p1_2 = 0;
}
if (p1_3 == 0) {
p1_3 = 0;
}
if (p1_4 == 0) {
p1_4 = 0;
}
} else if (flag == 2) {
if (p2_1 == 0) {
p2_1 = 0;
}
if (p2_2 == 0) {
p2_2 = 0;
}
if (p2_3 == 0) {
p2_3 = 0;
}
if (p2_4 == 0) {
p2_4 = 0;
}
} else if (flag == 3) {
p3_4 = 1;
}
checking();
} else {
jewel5._x = 24.4;
jewel5._y = 301.9;
jewelflag = 0;
}
};
btnback.onRelease = function () {
gotoAndPlay ("third");
};
btnback1.onRelease = function () {
gotoAndPlay ("third");
};
btnmoregames1.onRelease = function () {
getURL (btnUrl + "game-moregames-betweenscenes", "_blank");
};
btnlogo.onRelease = function () {
getURL (btnUrl + "game-logo-tl", "_blank");
};
btncompleted.onRelease = function () {
if (flag == 1) {
if ((((p1_1 == 1) && (p1_2 == 1)) && (p1_3 == 1)) && (p1_4 == 1)) {
nextpic._visible = true;
btnnextpict._visible = true;
sis = 0;
com = 0;
cli = 0;
} else {
btntry._visible = true;
youfailed._visible = true;
clearInterval(intervalID);
}
} else if (flag == 2) {
if ((((p2_1 == 1) && (p2_2 == 1)) && (p2_3 == 1)) && (p2_4 == 1)) {
nextpic._visible = true;
btnnextpict._visible = true;
sis = 0;
com = 0;
cli = 0;
} else {
btntry._visible = true;
youfailed._visible = true;
clearInterval(intervalID);
}
} else if (flag == 3) {
if ((((p3_1 == 1) && (p3_2 == 1)) && (p3_3 == 1)) && (p3_4 == 1)) {
clearInterval(intervalID);
msg13._visible = true;
btncontinue._visible = true;
btnmoregames1._visible = true;
sis = 0;
com = 0;
cli = 0;
} else {
btntry._visible = true;
youfailed._visible = true;
clearInterval(intervalID);
}
}
};
btncontinue.onRelease = function () {
gotoAndPlay ("challeng4");
};
btndone1.onRelease = function () {
newnote._visible = true;
newclose._visible = true;
};
newclose.onRelease = function () {
newnote._visible = false;
newclose._visible = false;
};
btnnextpict.onRelease = function () {
if (flag == 1) {
flag = 2;
p1._alpha = 25;
p2._alpha = 100;
p3._alpha = 25;
} else if (flag == 2) {
flag = 3;
p1._alpha = 25;
p2._alpha = 25;
p3._alpha = 100;
}
btntry._visible = false;
youfailed._visible = false;
nextpic._visible = false;
btnnextpict._visible = false;
newnote._visible = false;
newclose._visible = false;
msg1._visible = false;
btncontinue._visible = false;
btnmoregames1._visible = false;
reset();
hair1._x = 347.6;
hair1._y = 148.7;
resetrib();
resetsun();
resetjewel();
};
btntry.onRelease = function () {
btntry._visible = false;
youfailed._visible = false;
nextpic._visible = false;
btnnextpict._visible = false;
newnote._visible = false;
newclose._visible = false;
msg1._visible = false;
btncontinue._visible = false;
btnmoregames1._visible = false;
tim = 60;
flag = 1;
p1._alpha = 100;
p2._alpha = 25;
p3._alpha = 25;
p1_1 = 0;
p1_2 = 0;
p2_1 = 0;
p2_2 = 0;
p3_1 = 0;
p3_2 = 0;
reset();
hair1._x = 347.6;
hair1._y = 148.7;
resetrib();
resetsun();
resetjewel();
intervalID = 0;
sis = 0;
com = 0;
cli = 0;
intervalID = setInterval(updateTimer, 1000);
};
Frame 319
stop();
Frame 322
function updateTimer() {
tim = tim - 1;
if (tim == 0) {
btntry._visible = true;
youfailed._visible = true;
clearInterval(intervalID);
} else if (tim <= 9) {
txts.text = "00:0" + String(tim);
} else {
txts.text = "00:" + String(tim);
}
}
function reset() {
hair1._x = 1000;
hair1._y = 1000;
dryerhair._x = 1000;
dryerhair._y = 1000;
cuthair1._x = 1000;
cuthair1._y = 1000;
cuthair2._x = 1000;
cuthair2._y = 1000;
h1._x = 1000;
h1._y = 1000;
h2._x = 1000;
h2._y = 1000;
h3._x = 1000;
h3._y = 1000;
cliphair1._x = 1000;
cliphair1._y = 1000;
cliphair2._x = 1000;
cliphair2._y = 1000;
cliphair3._x = 1000;
cliphair3._y = 1000;
}
function resetsun() {
sunglass1._x = 664.6;
sunglass1._y = 349.7;
sunglass2._x = 670.6;
sunglass2._y = 354.1;
sunglass3._x = 623.7;
sunglass3._y = 392.4;
sunglass4._x = 566.1;
sunglass4._y = 427.6;
sunglass5._x = 676.8;
sunglass5._y = 427.6;
}
function resetrib() {
ribbon1._x = 566.1;
ribbon1._y = 133.3;
ribbon2._x = 687.5;
ribbon2._y = 133.3;
ribbon3._x = 615;
ribbon3._y = 185;
ribbon4._x = 574;
ribbon4._y = 263.8;
ribbon5._x = 724.6;
ribbon5._y = 263.8;
}
function resetjewel() {
jewel1._x = 126.3;
jewel1._y = 323.6;
jewel2._x = 103.7;
jewel2._y = 169.2;
jewel3._x = 180.6;
jewel3._y = 175.9;
jewel4._x = 29.1;
jewel4._y = 173.2;
jewel5._x = 24.4;
jewel5._y = 301.9;
}
function falses() {
dryer._visible = false;
sissor._visible = false;
comb._visible = false;
clip._visible = false;
reck1._visible = false;
reck2._visible = false;
ribbon1._visible = false;
ribbon2._visible = false;
ribbon3._visible = false;
ribbon4._visible = false;
ribbon5._visible = false;
sunglass1._visible = false;
sunglass2._visible = false;
sunglass3._visible = false;
sunglass4._visible = false;
sunglass5._visible = false;
jewel1._visible = false;
jewel2._visible = false;
jewel3._visible = false;
jewel4._visible = false;
jewel5._visible = false;
level4._visible = false;
btnmoregames._visible = false;
btnback._visible = false;
msg14._visible = true;
btncontinue._visible = true;
btnmoregames1._visible = true;
}
stop();
btntry._visible = false;
youfailed._visible = false;
nextpic._visible = false;
btnnextpict._visible = false;
newnote._visible = false;
newclose._visible = false;
reset();
btnnote._visible = false;
btnclose1._visible = false;
reset();
hair1._x = 347.6;
hair1._y = 148.7;
dryer._visible = true;
sissor._visible = true;
comb._visible = true;
clip._visible = true;
reck1._visible = true;
reck2._visible = true;
ribbon1._visible = true;
ribbon2._visible = true;
ribbon3._visible = true;
ribbon4._visible = true;
ribbon5._visible = true;
sunglass1._visible = true;
sunglass2._visible = true;
sunglass3._visible = true;
sunglass4._visible = true;
sunglass5._visible = true;
jewel1._visible = true;
jewel2._visible = true;
jewel3._visible = true;
jewel4._visible = true;
jewel5._visible = true;
btnshow._visible = true;
btnmoregames._visible = true;
btnback._visible = true;
ob3._visible = false;
btnback1._visible = false;
btnreplay._visible = false;
btnmoregames1._visible = false;
resetrib();
resetsun();
resetjewel();
msg14._visible = false;
btncontinue._visible = false;
btnmoregames1._visible = false;
var tim = 60;
var flag = 1;
p1._alpha = 100;
p2._alpha = 25;
p3._alpha = 25;
var p1_1 = 0;
var p1_2 = 0;
var p1_3 = 0;
var p1_4 = 0;
var p2_1 = 0;
var p2_2 = 0;
var p2_3 = 0;
var p2_4 = 0;
var p3_1 = 1;
var p3_2 = 0;
var p3_3 = 0;
var p3_4 = 0;
clearInterval(intervalID);
var intervalID = setInterval(updateTimer, 1000);
var sis = 0;
var com = 0;
var cli = 0;
var ribflag = 0;
var sunflag = 0;
dryer.onPress = function () {
startDrag (dryer);
};
dryer.onRelease = function () {
stopDrag();
if (dryer.hitTest(mclip)) {
reset();
dryerhair._x = 272.9;
dryerhair._y = 148.7;
_root.dryerhair.gotoAndPlay("f1");
dryer._x = 38;
dryer._y = 424.3;
sis = 0;
com = 0;
cli = 0;
if (flag == 1) {
if (p1_1 == 0) {
p1_1 = 0;
}
if (p1_2 == 0) {
p1_2 = 0;
}
if (p1_3 == 0) {
p1_3 = 0;
}
if (p1_4 == 0) {
p1_4 = 0;
}
} else if (flag == 2) {
if (p2_1 == 0) {
p2_1 = 0;
}
if (p2_2 == 0) {
p2_2 = 0;
}
if (p2_3 == 0) {
p2_3 = 0;
}
if (p2_4 == 0) {
p2_4 = 0;
}
} else if (flag == 3) {
if (p3_1 == 0) {
p3_1 = 0;
}
if (p3_2 == 0) {
p3_2 = 0;
}
if (p3_3 == 0) {
p3_3 = 0;
}
if (p3_4 == 0) {
p3_4 = 0;
}
}
checking();
} else {
dryer._x = 38;
dryer._y = 424.3;
}
};
sissor.onPress = function () {
startDrag (sissor);
};
sissor.onRelease = function () {
stopDrag();
if (sissor.hitTest(mclip)) {
if (sis == 0) {
reset();
cuthair1._x = 390.7;
cuthair1._y = 155.8;
_root.cuthair1.gotoAndPlay("f2");
sissor._x = 156.8;
sissor._y = 424.1;
sis = 1;
com = 1;
cli = 1;
if (flag == 1) {
if (p1_1 == 0) {
p1_1 = 0;
}
if (p1_2 == 0) {
p1_2 = 0;
}
if (p1_3 == 0) {
p1_3 = 0;
}
if (p1_4 == 0) {
p1_4 = 0;
}
} else if (flag == 2) {
if (p2_1 == 0) {
p2_1 = 0;
}
if (p2_2 == 0) {
p2_2 = 0;
}
if (p2_3 == 0) {
p2_3 = 0;
}
if (p2_4 == 0) {
p2_4 = 0;
}
} else if (flag == 3) {
if (p3_1 == 0) {
p3_1 = 0;
}
if (p3_2 == 0) {
p3_2 = 0;
}
if (p3_3 == 0) {
p3_3 = 0;
}
if (p3_4 == 0) {
p3_4 = 0;
}
}
checking();
} else if (sis == 1) {
reset();
cuthair2._x = 338.6;
cuthair2._y = 144.4;
_root.cuthair2.gotoAndPlay("f3");
sissor._x = 156.8;
sissor._y = 424.1;
com = 2;
cli = 2;
if (flag == 1) {
if (p1_1 == 0) {
p1_1 = 0;
}
if (p1_2 == 0) {
p1_2 = 0;
}
if (p1_3 == 0) {
p1_3 = 0;
}
if (p1_4 == 0) {
p1_4 = 0;
}
} else if (flag == 2) {
if (p2_1 == 0) {
p2_1 = 0;
}
if (p2_2 == 0) {
p2_2 = 0;
}
if (p2_3 == 0) {
p2_3 = 0;
}
if (p2_4 == 0) {
p2_4 = 0;
}
} else if (flag == 3) {
if (p3_1 == 0) {
p3_1 = 0;
}
if (p3_2 == 0) {
p3_2 = 0;
}
if (p3_3 == 0) {
p3_3 = 0;
}
if (p3_4 == 0) {
p3_4 = 0;
}
}
checking();
}
} else {
sissor._x = 156.8;
sissor._y = 424.1;
}
};
comb.onPress = function () {
startDrag (comb);
};
comb.onRelease = function () {
stopDrag();
if (comb.hitTest(mclip)) {
if (com == 0) {
reset();
h1._x = 347.6;
h1._y = 132.9;
_root.h1.gotoAndPlay("f4");
comb._x = 197.8;
comb._y = 503.4;
sis = 0;
cli = 0;
if (flag == 1) {
if (p1_1 == 0) {
p1_1 = 0;
}
if (p1_2 == 0) {
p1_2 = 0;
}
if (p1_3 == 0) {
p1_3 = 0;
}
if (p1_4 == 0) {
p1_4 = 0;
}
} else if (flag == 2) {
if (p2_1 == 0) {
p2_1 = 0;
}
if (p2_2 == 0) {
p2_2 = 0;
}
if (p2_3 == 0) {
p2_3 = 0;
}
if (p2_4 == 0) {
p2_4 = 0;
}
} else if (flag == 3) {
if (p3_1 == 0) {
p3_1 = 0;
}
if (p3_2 == 0) {
p3_2 = 0;
}
if (p3_3 == 0) {
p3_3 = 0;
}
if (p3_4 == 0) {
p3_4 = 0;
}
}
checking();
} else if (com == 1) {
reset();
h2._x = 343.6;
h2._y = 143.7;
_root.h2.gotoAndPlay("f5");
comb._x = 197.8;
comb._y = 503.4;
sis = 1;
cli = 1;
if (flag == 1) {
if (p1_1 == 0) {
p1_1 = 0;
}
if (p1_2 == 0) {
p1_2 = 0;
}
if (p1_3 == 0) {
p1_3 = 0;
}
if (p1_4 == 0) {
p1_4 = 0;
}
} else if (flag == 2) {
if (p2_1 == 0) {
p2_1 = 0;
}
if (p2_2 == 0) {
p2_2 = 0;
}
if (p2_3 == 0) {
p2_3 = 0;
}
if (p2_4 == 0) {
p2_4 = 0;
}
} else if (flag == 3) {
if (p3_1 == 0) {
p3_1 = 0;
}
if (p3_2 == 0) {
p3_2 = 0;
}
if (p3_3 == 0) {
p3_3 = 0;
}
if (p3_4 == 0) {
p3_4 = 0;
}
}
checking();
} else if (com == 2) {
reset();
h3._x = 338.6;
h3._y = 144.4;
_root.h3.gotoAndPlay("f6");
comb._x = 197.8;
comb._y = 503.4;
if (flag == 1) {
if (p1_1 == 0) {
p1_1 = 0;
}
if (p1_2 == 0) {
p1_2 = 0;
}
if (p1_3 == 0) {
p1_3 = 0;
}
if (p1_4 == 0) {
p1_4 = 0;
}
} else if (flag == 2) {
if (p2_1 == 0) {
p2_1 = 0;
}
if (p2_2 == 0) {
p2_2 = 0;
}
if (p2_3 == 0) {
p2_3 = 0;
}
if (p2_4 == 0) {
p2_4 = 0;
}
} else if (flag == 3) {
if (p3_1 == 0) {
p3_1 = 0;
}
if (p3_2 == 0) {
p3_2 = 0;
}
if (p3_3 == 0) {
p3_3 = 0;
}
if (p3_4 == 0) {
p3_4 = 0;
}
}
checking();
}
}
};
clip.onPress = function () {
startDrag (clip);
};
clip.onRelease = function () {
stopDrag();
if (clip.hitTest(mclip)) {
if (cli == 0) {
reset();
cliphair1._x = 304.6;
cliphair1._y = 137.5;
_root.cliphair1.gotoAndPlay("f6");
clip._x = 58.6;
clip._y = 503.5;
sis = 0;
if (flag == 1) {
if (p1_1 == 0) {
p1_1 = 0;
}
if (p1_2 == 0) {
p1_2 = 0;
}
if (p1_3 == 0) {
p1_3 = 0;
}
if (p1_4 == 0) {
p1_4 = 0;
}
} else if (flag == 2) {
p2_1 = 1;
} else if (flag == 3) {
if (p3_1 == 0) {
p3_1 = 0;
}
if (p3_2 == 0) {
p3_2 = 0;
}
if (p3_3 == 0) {
p3_3 = 0;
}
if (p3_4 == 0) {
p3_4 = 0;
}
}
checking();
} else if (cli == 1) {
reset();
cliphair2._x = 323.5;
cliphair2._y = 142.5;
_root.cliphair2.gotoAndPlay("f7");
clip._x = 58.6;
clip._y = 503.5;
sis = 1;
if (flag == 1) {
if (p1_1 == 0) {
p1_1 = 0;
}
if (p1_2 == 0) {
p1_2 = 0;
}
if (p1_3 == 0) {
p1_3 = 0;
}
if (p1_4 == 0) {
p1_4 = 0;
}
} else if (flag == 2) {
if (p2_1 == 0) {
p2_1 = 0;
}
if (p2_2 == 0) {
p2_2 = 0;
}
if (p2_3 == 0) {
p2_3 = 0;
}
if (p2_4 == 0) {
p2_4 = 0;
}
} else if (flag == 3) {
if (p3_1 == 0) {
p3_1 = 0;
}
if (p3_2 == 0) {
p3_2 = 0;
}
if (p3_3 == 0) {
p3_3 = 0;
}
if (p3_4 == 0) {
p3_4 = 0;
}
}
checking();
} else if (cli == 2) {
reset();
cliphair3._x = 320.6;
cliphair3._y = 139.5;
_root.cliphair3.gotoAndPlay("f8");
clip._x = 58.6;
clip._y = 503.5;
sis = 2;
if (flag == 1) {
p1_1 = 1;
} else if (flag == 2) {
if (p2_1 == 0) {
p2_1 = 0;
}
if (p2_2 == 0) {
p2_2 = 0;
}
if (p2_3 == 0) {
p2_3 = 0;
}
if (p2_4 == 0) {
p2_4 = 0;
}
} else if (flag == 3) {
p3_1 = 1;
}
checking();
}
}
};
sunglass1.onPress = function () {
startDrag (sunglass1);
};
sunglass1.onRelease = function () {
stopDrag();
if (sunglass1.hitTest(sun)) {
resetsun();
sunglass1._x = 460.5;
sunglass1._y = 230.1;
sunflag = 1;
if (flag == 1) {
if (p1_1 == 0) {
p1_1 = 0;
}
if (p1_2 == 0) {
p1_2 = 0;
}
if (p1_3 == 0) {
p1_3 = 0;
}
if (p1_4 == 0) {
p1_4 = 0;
}
} else if (flag == 2) {
p2_2 = 1;
} else if (flag == 3) {
if (p3_1 == 0) {
p3_1 = 0;
}
if (p3_2 == 0) {
p3_2 = 0;
}
if (p3_3 == 0) {
p3_3 = 0;
}
if (p3_4 == 0) {
p3_4 = 0;
}
}
checking();
} else {
sunglass1._x = 664.6;
sunglass1._y = 349.7;
sunflag = 0;
}
};
sunglass2.onPress = function () {
startDrag (sunglass2);
};
sunglass2.onRelease = function () {
stopDrag();
if (sunglass2.hitTest(sun)) {
resetsun();
sunglass2._x = 359.3;
sunglass2._y = 228.3;
sunflag = 2;
if (flag == 1) {
p1_2 = 1;
} else if (flag == 2) {
if (p2_1 == 0) {
p2_1 = 0;
}
if (p2_2 == 0) {
p2_2 = 0;
}
if (p2_3 == 0) {
p2_3 = 0;
}
if (p2_4 == 0) {
p2_4 = 0;
}
} else if (flag == 3) {
if (p3_1 == 0) {
p3_1 = 0;
}
if (p3_2 == 0) {
p3_2 = 0;
}
if (p3_3 == 0) {
p3_3 = 0;
}
if (p3_4 == 0) {
p3_4 = 0;
}
}
checking();
} else {
sunglass2._x = 670.6;
sunglass2._y = 354.1;
sunflag = 0;
}
};
sunglass3.onPress = function () {
startDrag (sunglass3);
};
sunglass3.onRelease = function () {
stopDrag();
if (sunglass3.hitTest(sun)) {
resetsun();
sunglass3._x = 362.9;
sunglass3._y = 231.4;
sunflag = 3;
if (flag == 1) {
if (p1_1 == 0) {
p1_1 = 0;
}
if (p1_2 == 0) {
p1_2 = 0;
}
if (p1_3 == 0) {
p1_3 = 0;
}
if (p1_4 == 0) {
p1_4 = 0;
}
} else if (flag == 2) {
if (p2_1 == 0) {
p2_1 = 0;
}
if (p2_2 == 0) {
p2_2 = 0;
}
if (p2_3 == 0) {
p2_3 = 0;
}
if (p2_4 == 0) {
p2_4 = 0;
}
} else if (flag == 3) {
p3_2 = 1;
}
checking();
} else {
sunglass3._x = 623.7;
sunglass3._y = 392.4;
sunflag = 0;
}
};
sunglass4.onPress = function () {
startDrag (sunglass4);
};
sunglass4.onRelease = function () {
stopDrag();
if (sunglass4.hitTest(sun)) {
resetsun();
sunglass4._x = 362.9;
sunglass4._y = 232.9;
sunflag = 4;
if (flag == 1) {
if (p1_1 == 0) {
p1_1 = 0;
}
if (p1_2 == 0) {
p1_2 = 0;
}
if (p1_3 == 0) {
p1_3 = 0;
}
if (p1_4 == 0) {
p1_4 = 0;
}
} else if (flag == 2) {
if (p2_1 == 0) {
p2_1 = 0;
}
if (p2_2 == 0) {
p2_2 = 0;
}
if (p2_3 == 0) {
p2_3 = 0;
}
if (p2_4 == 0) {
p2_4 = 0;
}
} else if (flag == 3) {
if (p3_1 == 0) {
p3_1 = 0;
}
if (p3_2 == 0) {
p3_2 = 0;
}
if (p3_3 == 0) {
p3_3 = 0;
}
if (p3_4 == 0) {
p3_4 = 0;
}
}
checking();
} else {
sunglass4._x = 566.1;
sunglass4._y = 427.6;
sunflag = 0;
}
};
sunglass5.onPress = function () {
startDrag (sunglass5);
};
sunglass5.onRelease = function () {
stopDrag();
if (sunglass5.hitTest(sun)) {
resetsun();
sunglass5._x = 360.1;
sunglass5._y = 231.8;
sunflag = 5;
if (flag == 1) {
if (p1_1 == 0) {
p1_1 = 0;
}
if (p1_2 == 0) {
p1_2 = 0;
}
if (p1_3 == 0) {
p1_3 = 0;
}
if (p1_4 == 0) {
p1_4 = 0;
}
} else if (flag == 2) {
if (p2_1 == 0) {
p2_1 = 0;
}
if (p2_2 == 0) {
p2_2 = 0;
}
if (p2_3 == 0) {
p2_3 = 0;
}
if (p2_4 == 0) {
p2_4 = 0;
}
} else if (flag == 3) {
if (p3_1 == 0) {
p3_1 = 0;
}
if (p3_2 == 0) {
p3_2 = 0;
}
if (p3_3 == 0) {
p3_3 = 0;
}
if (p3_4 == 0) {
p3_4 = 0;
}
}
checking();
} else {
sunglass5._x = 676.8;
sunglass5._y = 427.6;
sunflag = 0;
}
};
ribbon1.onPress = function () {
startDrag (ribbon1);
};
ribbon1.onRelease = function () {
stopDrag();
if (ribbon1.hitTest(rib)) {
resetrib();
ribbon1._x = 351.1;
ribbon1._y = 156.6;
ribflag = 1;
if (flag == 1) {
p1_3 = 1;
} else if (flag == 2) {
if (p2_1 == 0) {
p2_1 = 0;
}
if (p2_2 == 0) {
p2_2 = 0;
}
if (p2_3 == 0) {
p2_3 = 0;
}
if (p2_4 == 0) {
p2_4 = 0;
}
} else if (flag == 3) {
if (p3_1 == 0) {
p3_1 = 0;
}
if (p3_2 == 0) {
p3_2 = 0;
}
if (p3_3 == 0) {
p3_3 = 0;
}
if (p3_4 == 0) {
p3_4 = 0;
}
}
checking();
} else {
ribbon1._x = 566.1;
ribbon1._y = 133.3;
ribflag = 0;
}
};
ribbon2.onPress = function () {
startDrag (ribbon2);
};
ribbon2.onRelease = function () {
stopDrag();
if (ribbon2.hitTest(rib)) {
resetrib();
ribbon2._x = 387.8;
ribbon2._y = 161.8;
ribflag = 2;
if (flag == 1) {
if (p1_1 == 0) {
p1_1 = 0;
}
if (p1_2 == 0) {
p1_2 = 0;
}
if (p1_3 == 0) {
p1_3 = 0;
}
if (p1_4 == 0) {
p1_4 = 0;
}
} else if (flag == 2) {
if (p2_1 == 0) {
p2_1 = 0;
}
if (p2_2 == 0) {
p2_2 = 0;
}
if (p2_3 == 0) {
p2_3 = 0;
}
if (p2_4 == 0) {
p2_4 = 0;
}
} else if (flag == 3) {
if (p3_1 == 0) {
p3_1 = 0;
}
if (p3_2 == 0) {
p3_2 = 0;
}
if (p3_3 == 0) {
p3_3 = 0;
}
if (p3_4 == 0) {
p3_4 = 0;
}
}
checking();
} else {
ribbon2._x = 687.5;
ribbon2._y = 133.3;
ribflag = 0;
}
};
ribbon3.onPress = function () {
startDrag (ribbon3);
};
ribbon3.onRelease = function () {
stopDrag();
if (ribbon3.hitTest(rib)) {
resetrib();
ribbon3._x = 353.3;
ribbon3._y = 134.8;
ribflag = 3;
if (flag == 1) {
if (p1_1 == 0) {
p1_1 = 0;
}
if (p1_2 == 0) {
p1_2 = 0;
}
if (p1_3 == 0) {
p1_3 = 0;
}
if (p1_4 == 0) {
p1_4 = 0;
}
} else if (flag == 2) {
if (p2_1 == 0) {
p2_1 = 0;
}
if (p2_2 == 0) {
p2_2 = 0;
}
if (p2_3 == 0) {
p2_3 = 0;
}
if (p2_4 == 0) {
p2_4 = 0;
}
} else if (flag == 3) {
p3_3 = 1;
}
checking();
} else {
ribbon3._x = 615;
ribbon3._y = 185;
ribflag = 0;
}
};
ribbon4.onPress = function () {
startDrag (ribbon4);
};
ribbon4.onRelease = function () {
stopDrag();
if (ribbon4.hitTest(rib)) {
resetrib();
ribbon4._x = 352.1;
ribbon4._y = 153.4;
ribflag = 4;
if (flag == 1) {
if (p1_1 == 0) {
p1_1 = 0;
}
if (p1_2 == 0) {
p1_2 = 0;
}
if (p1_3 == 0) {
p1_3 = 0;
}
if (p1_4 == 0) {
p1_4 = 0;
}
} else if (flag == 2) {
if (p2_1 == 0) {
p2_1 = 0;
}
if (p2_2 == 0) {
p2_2 = 0;
}
if (p2_3 == 0) {
p2_3 = 0;
}
if (p2_4 == 0) {
p2_4 = 0;
}
} else if (flag == 3) {
if (p3_1 == 0) {
p3_1 = 0;
}
if (p3_2 == 0) {
p3_2 = 0;
}
if (p3_3 == 0) {
p3_3 = 0;
}
if (p3_4 == 0) {
p3_4 = 0;
}
}
checking();
} else {
ribbon4._x = 574;
ribbon4._y = 263.8;
ribflag = 0;
}
};
ribbon5.onPress = function () {
startDrag (ribbon5);
};
ribbon5.onRelease = function () {
stopDrag();
if (ribbon5.hitTest(rib)) {
resetrib();
ribbon5._x = 340.6;
ribbon5._y = 182;
ribflag = 5;
if (flag == 1) {
if (p1_1 == 0) {
p1_1 = 0;
}
if (p1_2 == 0) {
p1_2 = 0;
}
if (p1_3 == 0) {
p1_3 = 0;
}
if (p1_4 == 0) {
p1_4 = 0;
}
} else if (flag == 2) {
p2_3 = 1;
} else if (flag == 3) {
if (p3_1 == 0) {
p3_1 = 0;
}
if (p3_2 == 0) {
p3_2 = 0;
}
if (p3_3 == 0) {
p3_3 = 0;
}
if (p3_4 == 0) {
p3_4 = 0;
}
}
checking();
} else {
ribbon5._x = 724.6;
ribbon5._y = 263.8;
ribflag = 0;
}
};
jewel1.onPress = function () {
startDrag (jewel1);
};
jewel1.onRelease = function () {
stopDrag();
if (jewel1.hitTest(jclip)) {
resetjewel();
jewel1._x = 349.8;
jewel1._y = 328.6;
jewelflag = 1;
if (flag == 1) {
if (p1_1 == 0) {
p1_1 = 0;
}
if (p1_2 == 0) {
p1_2 = 0;
}
if (p1_3 == 0) {
p1_3 = 0;
}
if (p1_4 == 0) {
p1_4 = 0;
}
} else if (flag == 2) {
if (p2_1 == 0) {
p2_1 = 0;
}
if (p2_2 == 0) {
p2_2 = 0;
}
if (p2_3 == 0) {
p2_3 = 0;
}
if (p2_4 == 0) {
p2_4 = 0;
}
} else if (flag == 3) {
p3_4 = 1;
}
checking();
} else {
jewel1._x = 126.3;
jewel1._y = 323.6;
jewelflag = 0;
}
};
jewel2.onPress = function () {
startDrag (jewel2);
};
jewel2.onRelease = function () {
stopDrag();
if (jewel2.hitTest(jclip)) {
resetjewel();
jewel2._x = 374.5;
jewel2._y = 315;
jewelflag = 2;
if (flag == 1) {
if (p1_1 == 0) {
p1_1 = 0;
}
if (p1_2 == 0) {
p1_2 = 0;
}
if (p1_3 == 0) {
p1_3 = 0;
}
if (p1_4 == 0) {
p1_4 = 0;
}
} else if (flag == 2) {
if (p2_1 == 0) {
p2_1 = 0;
}
if (p2_2 == 0) {
p2_2 = 0;
}
if (p2_3 == 0) {
p2_3 = 0;
}
if (p2_4 == 0) {
p2_4 = 0;
}
} else if (flag == 3) {
if (p3_1 == 0) {
p3_1 = 0;
}
if (p3_2 == 0) {
p3_2 = 0;
}
if (p3_3 == 0) {
p3_3 = 0;
}
if (p3_4 == 0) {
p3_4 = 0;
}
}
checking();
} else {
jewel2._x = 103.7;
jewel2._y = 169.2;
jewelflag = 0;
}
};
jewel3.onPress = function () {
startDrag (jewel3);
};
jewel3.onRelease = function () {
stopDrag();
if (jewel3.hitTest(jclip)) {
resetjewel();
jewel3._x = 374.9;
jewel3._y = 314.3;
jewelflag = 3;
if (flag == 1) {
p1_4 = 1;
} else if (flag == 2) {
if (p2_1 == 0) {
p2_1 = 0;
}
if (p2_2 == 0) {
p2_2 = 0;
}
if (p2_3 == 0) {
p2_3 = 0;
}
if (p2_4 == 0) {
p2_4 = 0;
}
} else if (flag == 3) {
if (p3_1 == 0) {
p3_1 = 0;
}
if (p3_2 == 0) {
p3_2 = 0;
}
if (p3_3 == 0) {
p3_3 = 0;
}
if (p3_4 == 0) {
p3_4 = 0;
}
}
checking();
} else {
jewel3._x = 180.6;
jewel3._y = 175.9;
jewelflag = 0;
}
};
jewel4.onPress = function () {
startDrag (jewel4);
};
jewel4.onRelease = function () {
stopDrag();
if (jewel4.hitTest(jclip)) {
resetjewel();
jewel4._x = 376.4;
jewel4._y = 316.5;
jewelflag = 4;
if (flag == 1) {
if (p1_1 == 0) {
p1_1 = 0;
}
if (p1_2 == 0) {
p1_2 = 0;
}
if (p1_3 == 0) {
p1_3 = 0;
}
if (p1_4 == 0) {
p1_4 = 0;
}
} else if (flag == 2) {
p2_4 = 1;
} else if (flag == 3) {
if (p3_1 == 0) {
p3_1 = 0;
}
if (p3_2 == 0) {
p3_2 = 0;
}
if (p3_3 == 0) {
p3_3 = 0;
}
if (p3_4 == 0) {
p3_4 = 0;
}
}
checking();
} else {
jewel4._x = 29.1;
jewel4._y = 173.2;
jewelflag = 0;
}
};
jewel5.onPress = function () {
startDrag (jewel5);
};
jewel5.onRelease = function () {
stopDrag();
if (jewel5.hitTest(jclip)) {
resetjewel();
jewel5._x = 366.8;
jewel5._y = 321.3;
jewelflag = 5;
if (flag == 1) {
if (p1_1 == 0) {
p1_1 = 0;
}
if (p1_2 == 0) {
p1_2 = 0;
}
if (p1_3 == 0) {
p1_3 = 0;
}
if (p1_4 == 0) {
p1_4 = 0;
}
} else if (flag == 2) {
if (p2_1 == 0) {
p2_1 = 0;
}
if (p2_2 == 0) {
p2_2 = 0;
}
if (p2_3 == 0) {
p2_3 = 0;
}
if (p2_4 == 0) {
p2_4 = 0;
}
} else if (flag == 3) {
if (p3_1 == 0) {
p3_1 = 0;
}
if (p3_2 == 0) {
p3_2 = 0;
}
if (p3_3 == 0) {
p3_3 = 0;
}
if (p3_4 == 0) {
p3_4 = 0;
}
}
checking();
} else {
jewel5._x = 24.4;
jewel5._y = 301.9;
jewelflag = 0;
}
};
btnback.onRelease = function () {
gotoAndPlay ("third");
};
btnback1.onRelease = function () {
gotoAndPlay ("third");
};
btnmoregames1.onRelease = function () {
getURL (btnUrl + "game-moregames-betweenscenes", "_blank");
};
btnlogo.onRelease = function () {
getURL (btnUrl + "game-logo-tl", "_blank");
};
btncompleted.onRelease = function () {
if (flag == 1) {
if ((((p1_1 == 1) && (p1_2 == 1)) && (p1_3 == 1)) && (p1_4 == 1)) {
nextpic._visible = true;
btnnextpict._visible = true;
sis = 0;
com = 0;
cli = 0;
} else {
btntry._visible = true;
youfailed._visible = true;
clearInterval(intervalID);
}
} else if (flag == 2) {
if ((((p2_1 == 1) && (p2_2 == 1)) && (p2_3 == 1)) && (p2_4 == 1)) {
nextpic._visible = true;
btnnextpict._visible = true;
sis = 0;
com = 0;
cli = 0;
} else {
btntry._visible = true;
youfailed._visible = true;
clearInterval(intervalID);
}
} else if (flag == 3) {
if ((((p3_1 == 1) && (p3_2 == 1)) && (p3_3 == 1)) && (p3_4 == 1)) {
clearInterval(intervalID);
msg14._visible = true;
btncontinue._visible = true;
btnmoregames1._visible = true;
sis = 0;
com = 0;
cli = 0;
} else {
btntry._visible = true;
youfailed._visible = true;
clearInterval(intervalID);
}
}
};
btncontinue.onRelease = function () {
gotoAndPlay ("third");
};
btndone1.onRelease = function () {
newnote._visible = true;
newclose._visible = true;
};
newclose.onRelease = function () {
newnote._visible = false;
newclose._visible = false;
};
btnnextpict.onRelease = function () {
if (flag == 1) {
flag = 2;
p1._alpha = 25;
p2._alpha = 100;
p3._alpha = 25;
} else if (flag == 2) {
flag = 3;
p1._alpha = 25;
p2._alpha = 25;
p3._alpha = 100;
}
btntry._visible = false;
youfailed._visible = false;
nextpic._visible = false;
btnnextpict._visible = false;
newnote._visible = false;
newclose._visible = false;
msg14._visible = false;
btncontinue._visible = false;
btnmoregames1._visible = false;
reset();
hair1._x = 347.6;
hair1._y = 148.7;
resetrib();
resetsun();
resetjewel();
};
btntry.onRelease = function () {
btntry._visible = false;
youfailed._visible = false;
nextpic._visible = false;
btnnextpict._visible = false;
newnote._visible = false;
newclose._visible = false;
msg1._visible = false;
btncontinue._visible = false;
btnmoregames1._visible = false;
tim = 60;
flag = 1;
p1._alpha = 100;
p2._alpha = 25;
p3._alpha = 25;
p1_1 = 0;
p1_2 = 0;
p2_1 = 0;
p2_2 = 0;
p3_1 = 0;
p3_2 = 0;
reset();
hair1._x = 347.6;
hair1._y = 148.7;
resetrib();
resetsun();
resetjewel();
intervalID = 0;
sis = 0;
com = 0;
cli = 0;
intervalID = setInterval(updateTimer, 1000);
};
Frame 331
stop();
Symbol 64 Button
on (release) {
getURL (btnUrl + "preloader", "_blank");
}
Symbol 70 Button
on (release) {
getURL (btnUrl + "preloader", "_blank");
}
Symbol 81 MovieClip Frame 35
stop();
Symbol 84 Button
on (release) {
getURL (btnUrl + "preloader", "_blank");
}
Symbol 91 Button
on (release) {
getURL ("http://www.dressupone.com/", "_blank");
}
Symbol 97 Button
on (release) {
gotoAndStop (1);
}
Symbol 98 Button
on (release) {
getURL (btnUrl + "preloader-moregames-mr", "_blank");
}
Symbol 99 Button
on (release) {
gotoAndPlay (201);
}
Symbol 113 Button
on (release) {
getURL (btnUrl + "cover-moregames-mm", "_blank");
}
Symbol 143 Button
on (release) {
getURL (btnUrl + "game-moregame-mm", "_blank");
}
Symbol 147 Button
on (release) {
getURL (btnUrl + "cover-logo-tl", "_blank");
}
Symbol 220 Button
on (release) {
getURL (btnUrl + "game-moregames-betweenscenes", "_blank");
}
Symbol 252 MovieClip Frame 65
stop();
Symbol 254 MovieClip Frame 65
stop();
Symbol 256 MovieClip Frame 65
stop();
Symbol 261 MovieClip Frame 77
stop();
Symbol 263 MovieClip Frame 87
stop();
Symbol 273 MovieClip Frame 87
stop();
Symbol 277 MovieClip Frame 94
stop();
Symbol 279 MovieClip Frame 81
stop();
Symbol 281 MovieClip Frame 81
stop();
Symbol 356 Button
on (release) {
getURL (btnUrl + "game-moregames-br", "_blank");
}
Symbol 382 Button
on (release) {
getURL (btnUrl + "game-moregames-br", "_blank");
}