Frame 1
stop();
_level0.loading.onEnterFrame = function () {
if ((_level0.getBytesLoaded() == _level0.getBytesTotal()) and (_level0.getBytesTotal() > 0)) {
_root.play();
this.onEnterFrame = false;
} else {
perc = Math.floor((_level0.getBytesLoaded() / _level0.getBytesTotal()) * 100);
this.gotoAndStop(perc);
_level0.perc_load = perc + "%";
}
};
Frame 2
_root.puntF = 0;
_root.puntM = 0;
_root.quale_lady = 1;
_root.max_lady = 3;
_root.hard_control = false;
_root.startGame = function (lev) {
if (lev == "easy") {
_root.hard_control = false;
_root.randomNum = 5;
} else if (lev == "hard") {
_root.hard_control = true;
_root.randomNum = 7;
} else if (lev == "bonus") {
_root.hard_control = false;
_root.randomNum = "bonus";
}
_root.quale_lady = 1;
_root.newLady(_root.quale_lady);
};
_root.newLady = function (quale) {
_root.createEmptyMovieClip("lady", 500);
_root.lady.attachMovie("lady0" + quale, "lady", 100);
_root.puntM = 0;
_root.puntF = 0;
_root.puls1.enabled = true;
_root.puls1._alpha = 100;
_root.puls2.enabled = false;
_root.puls2._alpha = 50;
_root.puls3.enabled = false;
_root.puls3._alpha = 50;
_root.scalaM.gotoAndStop(1);
_root.scalaF.gotoAndStop(1);
_root.sfoc._alpha = 0;
};
_root.puls1.enabled = false;
_root.puls1._alpha = 50;
_root.puls2.enabled = false;
_root.puls2._alpha = 50;
_root.puls3.enabled = false;
_root.puls3._alpha = 50;
_root.nuovo_liq = function () {
_root.createEmptyMovieClip("cont_liq", 100);
_root.cont_liq._x = 600;
_root.cont_liq._y = 205;
_root.cont_liq._alpha = 0;
_root.cont_liq.attachMovie("liquore", "liquore", 50);
if (_root.randomNum != "bonus") {
_root.quale_liq = random(_root.randomNum) + 1;
} else {
_root.quale_liq = 2;
}
_root.cont_liq.liquore.gotoAndStop(_root.quale_liq);
_root.cont_liq.onEnterFrame = function () {
if (this._alpha < 100) {
this._alpha = this._alpha + 10;
} else {
this._alpha = 100;
this.onEnterFrame = false;
}
};
};
i = 1;
while (i <= 3) {
_root["puls" + i].onRollOver = function () {
this.gotoAndStop(2);
};
_root["puls" + i].onRollOut = function () {
this.gotoAndStop(1);
};
i++;
}
_root.puls1.onRelease = function () {
_root.nuovo_liq();
this._parent.puls2.enabled = true;
this._parent.puls2._alpha = 100;
this._parent.puls3.enabled = true;
this._parent.puls3._alpha = 100;
this._alpha = 50;
this.enabled = false;
};
_root.puls2.onRelease = function () {
_root.puntF = _root.puntF + _root.quale_liq;
_root.scalaF.gotoAndStop(_root.puntF + 1);
_root.controlla();
};
_root.puls3.onRelease = function () {
_root.puntM = _root.puntM + _root.quale_liq;
_root.scalaM.gotoAndStop(_root.puntM + 1);
_root.controlla();
};
_root.controlla = function () {
_root.cont_liq._alpha = 0;
_root.cont_liq.onEnterFrame = false;
_root.puls1.enabled = true;
_root.puls1._alpha = 100;
_root.puls2.enabled = false;
_root.puls2._alpha = 50;
_root.puls3.enabled = false;
_root.puls3._alpha = 50;
if (_root.puntM > 17) {
_root.istruzioni.gotoAndStop(2);
_root.istruzioni._visible = true;
_root.puls1.enabled = false;
_root.puls1._alpha = 50;
} else if (_root.puntF == 17) {
_root.quale_lady++;
_root.lady.lady.gotoAndStop(10);
if (_root.quale_lady <= _root.max_lady) {
_root.istruzioni.gotoAndStop(6);
_root.istruzioni._visible = true;
} else {
if (_root.hard_control) {
_root.istruzioni.gotoAndStop(5);
} else {
_root.istruzioni.gotoAndStop(4);
}
_root.istruzioni._visible = true;
}
_root.puls1.enabled = false;
_root.puls1._alpha = 50;
} else if (_root.puntF > 17) {
if (_root.randomNum != "bonus") {
_root.lady.lady.gotoAndStop(15);
_root.istruzioni.gotoAndStop(3);
} else {
_root.quale_lady++;
_root.lady.lady.gotoAndStop(10);
if (_root.quale_lady <= _root.max_lady) {
_root.istruzioni.gotoAndStop(6);
_root.istruzioni._visible = true;
} else {
_root.istruzioni.gotoAndStop(4);
_root.istruzioni._visible = true;
}
}
_root.istruzioni._visible = true;
_root.puls1.enabled = false;
_root.puls1._alpha = 50;
} else {
_root.lady.lady.gotoAndStop(Math.floor(_root.puntF / 2));
_root.sfoc._alpha = _root.puntM * 5;
}
};
stop();
Instance of Symbol 64 MovieClip "sfoc" in Frame 2
onClipEvent (load) {
this._alpha = 0;
this.swapDepths(600);
this._visible = true;
}
Instance of Symbol 85 MovieClip "istruzioni" in Frame 2
onClipEvent (load) {
this.swapDepths(700);
}
Symbol 12 MovieClip [liquore] Frame 1
stop();
Symbol 24 MovieClip [lady03] Frame 1
stop();
Symbol 36 MovieClip [lady02] Frame 1
stop();
Symbol 54 MovieClip [lady01] Frame 1
stop();
Symbol 62 MovieClip Frame 1
stop();
Symbol 69 MovieClip Frame 1
stop();
Symbol 76 MovieClip Frame 1
stop();
Symbol 85 MovieClip Frame 1
stop();
this.puls_start1.onRollOver = function () {
this.gotoAndStop(2);
};
this.puls_start1.onRollOut = function () {
this.gotoAndStop(1);
};
this.puls_start1.onRelease = function () {
this.gotoAndStop(1);
_root.startGame("easy");
this._parent._visible = false;
};
this.puls_start2.onRollOver = function () {
this.gotoAndStop(2);
};
this.puls_start2.onRollOut = function () {
this.gotoAndStop(1);
};
this.puls_start2.onRelease = function () {
this.gotoAndStop(1);
_root.startGame("hard");
this._parent._visible = false;
};
Symbol 85 MovieClip Frame 2
stop();
this.puls_start1.onRollOver = function () {
this.gotoAndStop(2);
};
this.puls_start1.onRollOut = function () {
this.gotoAndStop(1);
};
this.puls_start1.onRelease = function () {
this.gotoAndStop(1);
_root.startGame("easy");
this._parent._visible = false;
};
this.puls_start2.onRollOver = function () {
this.gotoAndStop(2);
};
this.puls_start2.onRollOut = function () {
this.gotoAndStop(1);
};
this.puls_start2.onRelease = function () {
this.gotoAndStop(1);
_root.startGame("hard");
this._parent._visible = false;
};
Symbol 85 MovieClip Frame 3
stop();
this.puls_start1.onRollOver = function () {
this.gotoAndStop(2);
};
this.puls_start1.onRollOut = function () {
this.gotoAndStop(1);
};
this.puls_start1.onRelease = function () {
this.gotoAndStop(1);
_root.startGame("easy");
this._parent._visible = false;
};
this.puls_start2.onRollOver = function () {
this.gotoAndStop(2);
};
this.puls_start2.onRollOut = function () {
this.gotoAndStop(1);
};
this.puls_start2.onRelease = function () {
this.gotoAndStop(1);
_root.startGame("hard");
this._parent._visible = false;
};
Symbol 85 MovieClip Frame 4
stop();
this.puls_start1.onRollOver = function () {
this.gotoAndStop(2);
};
this.puls_start1.onRollOut = function () {
this.gotoAndStop(1);
};
this.puls_start1.onRelease = function () {
this.gotoAndStop(1);
_root.startGame("easy");
this._parent._visible = false;
};
this.puls_start2.onRollOver = function () {
this.gotoAndStop(2);
};
this.puls_start2.onRollOut = function () {
this.gotoAndStop(1);
};
this.puls_start2.onRelease = function () {
this.gotoAndStop(1);
_root.startGame("hard");
this._parent._visible = false;
};
Symbol 85 MovieClip Frame 5
stop();
this.puls_start1.onRollOver = function () {
this.gotoAndStop(2);
};
this.puls_start1.onRollOut = function () {
this.gotoAndStop(1);
};
this.puls_start1.onRelease = function () {
this.gotoAndStop(1);
_root.startGame("easy");
this._parent._visible = false;
};
this.puls_start2.onRollOver = function () {
this.gotoAndStop(2);
};
this.puls_start2.onRollOut = function () {
this.gotoAndStop(1);
};
this.puls_start2.onRelease = function () {
this.gotoAndStop(1);
_root.startGame("hard");
this._parent._visible = false;
};
this.puls_bonus.onRollOver = function () {
this.gotoAndStop(2);
};
this.puls_bonus.onRollOut = function () {
this.gotoAndStop(1);
};
this.puls_bonus.onRelease = function () {
this.gotoAndStop(1);
_root.startGame("bonus");
this._parent._visible = false;
};
Symbol 85 MovieClip Frame 6
stop();
this.puls_new.onRollOver = function () {
this.gotoAndStop(2);
};
this.puls_new.onRollOut = function () {
this.gotoAndStop(1);
};
this.puls_new.onRelease = function () {
this.gotoAndStop(1);
_root.newLady(_root.quale_lady);
this._parent._visible = false;
};