Frame 1
stop();
Frame 2
fscommand ("fullscreen", "false");
fscommand ("allowscale", "false");
fscommand ("showmenu", "false");
current_bytes = this.getBytesLoaded();
tot_bytes = this.getBytesTotal();
percent = int((current_bytes / tot_bytes) * 100) + "% ";
if (current_bytes >= tot_bytes) {
gotoAndStop (6);
}
Frame 4
stop();
Frame 5
c1 = _url.indexOf("://") + 3;
c2 = _url.indexOf("/", c1);
domain = _url.substring(c1, c2);
if (((domain == "www.dreamarcade.com") || (domain == "216.55.181.4")) || (domain == "www.ultimatearcade.com")) {
gotoAndStop (6);
} else {
gotoAndStop (4);
}
Frame 6
play();
Frame 7
function order(a, b) {
var name1 = a[0];
var name2 = b[0];
if (name1 < name2) {
return(-1);
}
if (name1 > name2) {
return(1);
}
return(0);
}
function compareScores(myScore) {
array_scores.sort(order);
if (array_scores[0][0] < myScore) {
return(true);
}
return(false);
}
function updateScores(myNick, myScore) {
array_scores.shift();
array_scores.push([myScore, myNick]);
array_scores.sort(order);
array_scores.reverse();
}
function spostaInPunto(arrivoX, arrivoY, clip) {
var arrivoX;
var arrivoY;
var n = 1;
var iniXClip = _root[clip]._x;
var iniYClip = _root[clip]._y;
createEmptyMovieClip("clipSpostatore", 1001);
_root.clipSpostatore.onEnterFrame = function () {
if (n <= 20) {
_root[clip]._x = iniXClip + (((arrivoX - iniXClip) / 20) * n);
_root[clip]._y = iniYClip + (((arrivoY - iniYClip) / 20) * n);
n++;
} else {
this.removeMovieClip();
}
};
}
array_scores = new Array(12);
array_scores[0] = [1020, "pippo"];
array_scores[1] = [1300, "gippo"];
array_scores[2] = [1000, "pippo"];
array_scores[3] = [1400, "pippo"];
array_scores[4] = [1050, "pippo"];
array_scores[5] = [1060, "pippo"];
array_scores[6] = [1000, "aippo"];
array_scores[7] = [10560, "pippo"];
array_scores[8] = [1440, "pippo"];
array_scores[9] = [1570, "pippo"];
array_scores[10] = [1300, "pippo"];
array_scores[11] = [3550, "pippo"];
Frame 8
stop();
Frame 9
function scaricaEventi() {
stopDrag();
var i = 1;
while (i <= numPiece) {
_root[nomePezzo + i].onPress = function () {
};
_root[nomePezzo + i].onRelease = function () {
};
i++;
i++;
}
}
function rimuoviPezzi() {
var i = 1;
while (i <= numPiece) {
_root[nomePezzo + i].removeMovieClip();
_root[nomePezzo + i].removeMovieClip();
i++;
}
}
function initialize(levelDiff) {
if (levelDiff == 1) {
timeForLevel = 120000 /* 0x01D4C0 */;
grandezza = 120;
pPerRiga = 3;
numPiece = 9;
nomePezzo = "p";
}
if (levelDiff == 2) {
timeForLevel = 300000 /* 0x0493E0 */;
grandezza = 72;
pPerRiga = 5;
numPiece = 25;
nomePezzo = "q";
}
if (levelDiff == 3) {
timeForLevel = 1200000 /* 0x124F80 */;
grandezza = 52;
pPerRiga = 7;
numPiece = 49;
nomePezzo = "z";
}
var L = 1;
var H = 1;
var i = 1;
while (i <= numPiece) {
attachMovie(nomePezzo + i, nomePezzo + i, i);
if (L <= pPerRiga) {
_root[nomePezzo + i].giustaX = ((grandezza * L) + 368.9) - (grandezza / 2);
_root[nomePezzo + i].giustaY = ((grandezza * H) + 80) - (grandezza / 2);
L++;
} else {
H++;
L = 1;
_root[nomePezzo + i].giustaX = ((grandezza * L) + 368.9) - (grandezza / 2);
_root[nomePezzo + i].giustaY = ((grandezza * H) + 80) - (grandezza / 2);
L++;
}
_root[nomePezzo + i]._x = random(300) + 380;
_root[nomePezzo + i]._y = random(220) + 200;
_root[nomePezzo + i]._rotation = random(4) * 90;
i++;
}
i = 1;
while (i <= numPiece) {
_root[nomePezzo + i].swapDepths(random(numPiece));
i++;
}
}
initialize(levelDiff);
contafinale = 0;
score = 0;
n = 0;
n++;
Instance of Symbol 354 MovieClip in Frame 9
onClipEvent (load) {
maxTime = _root.timeForLevel;
timeStart = getTimer();
}
onClipEvent (enterFrame) {
timeElapsed = maxTime - (getTimer() - timeStart);
timeRealSeconds = Math.floor(timeElapsed / 1000);
timeMinutes = Math.floor(timeRealSeconds / 60);
trace(timeMinutes);
timeSeconds = timeRealSeconds - (timeMinutes * 60);
if (timeSeconds < 10) {
timeseconds = String("0" + timeseconds);
}
_root.timer = (timeMinutes + ":") + timeSeconds;
_root.timeScore = timeRealSeconds;
if ((timeSeconds <= 0) && (timeMinutes <= 0)) {
_root.gotoAndStop("label_gameover");
}
}
Frame 18
stop();
rimuoviPezzi();
Symbol 7 Button
on (press) {
_parent.zoom.scala = true;
_parent.zoom.a = _parent.zoom._width;
_parent.zoom.b = _parent.zoom._height;
_parent.zoom.wIn = Math.floor(_parent._xmouse);
}
on (release, releaseOutside) {
_parent.zoom.scala = false;
}
Symbol 10 Button
on (press) {
startDrag (_parent);
}
on (release) {
stopDrag();
}
Symbol 15 Button
on (release) {
removeMovieClip(_parent);
}
Instance of Symbol 5 MovieClip "zoom" in Symbol 17 MovieClip [winzoom] Frame 1
onClipEvent (load) {
minSize = 80;
offset = 6;
_parent.closeButton._x = _parent.dragBar._width - offset;
}
onClipEvent (enterFrame) {
if (scala) {
_width = Math.floor((a + _parent._xmouse) - wIn);
_height = Math.floor((b + _parent._xmouse) - wIn);
if (_width < minSize) {
_width = minSize;
}
if (_height < minSize) {
_height = minSize;
}
_parent.dragBar._width = _width;
_parent.dragBar._x = 0;
_parent.resizeCorner._x = (_x + _width) + (resizeCorner._width / 2);
_parent.resizeCorner._y = (_y + _height) + (resizeCorner._height / 2);
_parent.closeButton._x = _parent.dragBar._width - offset;
}
}
Symbol 19 MovieClip Frame 1
function posClone(coordX, coordY, floorClip, parente) {
if (floorClip == 1) {
point = new object();
point.x = coordX;
point.y = coordY;
parente.globalToLocal(point);
} else if (floorClip != 1) {
point = new object();
point.x = coordX;
point.y = coordY;
_root[floorClip].localToGlobal(point);
parente.globalToLocal(point);
}
}
function comportamentoGruppo(collega, parente) {
for (nameInterni in _root[collega]) {
if (typeof(_root[collega][nameInterni]) == "movieclip") {
if (nameInterni.charAt(0) == _root.nomePezzo) {
posClone(_root[collega][nameInterni]._x, _root[collega][nameInterni]._y, collega, parente);
parente.attachMovie(nameInterni, nameInterni, _root.n++);
parente[nameInterni]._x = point.x;
parente[nameInterni]._y = point.y;
}
}
}
posClone(_root[collega]._x, _root[collega]._y, 1, parente);
parente.attachMovie(collega, collega, _root.n++);
parente[collega]._x = point.x;
parente[collega]._y = point.y;
_root[collega].removeMovieClip();
_root.contafinale++;
_root.score = 100 * _root.contafinale;
fx1.start();
}
function CollegatiInMioGruppo(capogruppo, parente) {
var str;
var nameInterni;
var strPezzi;
collegati_inparent = 0;
trace("parente:" + parente);
if (capogruppo == parente) {
trace("avanti");
for (nameInterni in capogruppo) {
if (typeof(capogruppo[nameInterni]) == "movieclip") {
if (nameInterni.charAt(0) == _root.nomePezzo) {
var nP = parseInt(nameInterni.substr(1));
var resto = (nP % pPerRiga);
var collegaUp_nP = (_root.nomePezzo + (nP - pPerRiga));
var collegaDown_nP = (_root.nomePezzo + (nP + pPerRiga));
var collegaLeft_nP = ((resto == 1) ? undefined : (_root.nomePezzo + (nP - 1)));
var collegaRight_nP = ((resto == 0) ? undefined : (_root.nomePezzo + (nP + 1)));
str = (((((((str + ",") + collegaUp_nP) + ",") + collegaDown_nP) + ",") + collegaLeft_nP) + ",") + collegaRight_nP;
strPezzi = (strPezzi + ",") + nameInterni;
}
}
}
strPezzi = capogruppo._name + strPezzi;
array_pezzi_capo = strPezzi.split(",");
str = (((((((str + ",") + collegaUp) + ",") + collegaDown) + ",") + collegaLeft) + ",") + collegaRight;
} else {
var str = capogruppo._name;
for (var nameInterni in capogruppo) {
if (typeof(capogruppo[nameInterni]) == "movieclip") {
if (nameInterni.charAt(0) == _root.nomePezzo) {
str = (str + ",") + nameInterni;
}
}
}
}
return(str);
}
function rilevaCoppiaSuper(sP, parente) {
var sP = parseInt(sP.substr(1));
var resto = (sP % pPerRiga);
var collegaUp_sP = (_root.nomePezzo + (sP - pPerRiga));
var collegaDown_sP = (_root.nomePezzo + (sP + pPerRiga));
var collegaLeft_sP = ((resto == 1) ? undefined : (_root.nomePezzo + (sP - 1)));
var collegaRight_sP = ((resto == 0) ? undefined : (_root.nomePezzo + (sP + 1)));
var i;
i = 0;
while (i < array_pezzi_capo.length) {
if (array_pezzi_capo[i] == collegaUp_sP) {
superPezzoCapo = array_pezzi_capo[i];
orientamento = 1;
}
if (array_pezzi_capo[i] == collegaDown_sP) {
superPezzoCapo = array_pezzi_capo[i];
orientamento = 3;
}
if (array_pezzi_capo[i] == collegaLeft_sP) {
superPezzoCapo = array_pezzi_capo[i];
orientamento = 4;
}
if (array_pezzi_capo[i] == collegaRight_sP) {
superPezzoCapo = array_pezzi_capo[i];
orientamento = 2;
}
i++;
}
collegaiSuper(superPezzoCapo, _root.nomePezzo + sP, orientamento, parente);
}
function collegaiSuper(superPezzoCapo, superPezzo, orient, parente) {
trace("superpezzocapo=" + superPezzoCapo);
trace("superpezzo=" + superPezzo);
sPCx = parente[superPezzoCapo]._x;
sPCy = parente[superPezzoCapo]._y;
if (superPezzo == capogruppoassorbito) {
posClone(_root[capogruppoassorbito]._x, _root[capogruppoassorbito]._y, 1, parente);
} else {
posClone(_root[capogruppoassorbito][superPezzo]._x, _root[capogruppoassorbito][superPezzo]._y, capogruppoassorbito, parente);
}
sPx = point.x;
sPy = point.y;
if (((((sPCx < (sPx - (grandezza - 10))) && (sPCx > (sPx - (grandezza + 10)))) && (sPCy > (sPy - 10))) && (sPCy < (sPy + 10))) && (orient == 4)) {
deltaX = (sPCx - sPx) + grandezza;
deltaY = sPCy - sPy;
if (parente._rotation == 0) {
parente._x = parente._x - deltaX;
parente._y = parente._y - deltaY;
}
if (parente._rotation == 90) {
parente._x = parente._x + deltaY;
parente._y = parente._y - deltaX;
}
if (parente._rotation == 180) {
parente._x = parente._x + deltaX;
parente._y = parente._y + deltaY;
}
if (parente._rotation == -90) {
parente._x = parente._x - deltaY;
parente._y = parente._y + deltaX;
}
comportamentoGruppo(capogruppoassorbito, parente);
}
if (((((sPCx > (sPx + (grandezza - 10))) && (sPCx < (sPx + (grandezza + 10)))) && (sPCy > (sPy - 10))) && (sPCy < (sPy + 10))) && (orient == 2)) {
deltaX = (sPCx - sPx) - grandezza;
deltaY = sPCy - sPy;
if (parente._rotation == 0) {
parente._x = parente._x - deltaX;
parente._y = parente._y - deltaY;
}
if (parente._rotation == 90) {
parente._x = parente._x + deltaY;
parente._y = parente._y - deltaX;
}
if (parente._rotation == 180) {
parente._x = parente._x + deltaX;
parente._y = parente._y + deltaY;
}
if (parente._rotation == -90) {
parente._x = parente._x - deltaY;
parente._y = parente._y + deltaX;
}
comportamentoGruppo(capogruppoassorbito, parente);
}
if (((((sPCx > (sPx - 10)) && (sPCx < (sPx + 10))) && (sPCy > (sPy + (grandezza - 10)))) && (sPCy < (sPy + (grandezza + 10)))) && (orient == 3)) {
deltaX = sPCx - sPx;
deltaY = (sPCy - sPy) - grandezza;
if (parente._rotation == 0) {
parente._x = parente._x - deltaX;
parente._y = parente._y - deltaY;
}
if (parente._rotation == 90) {
parente._x = parente._x + deltaY;
parente._y = parente._y - deltaX;
}
if (parente._rotation == 180) {
parente._x = parente._x + deltaX;
parente._y = parente._y + deltaY;
}
if (parente._rotation == -90) {
parente._x = parente._x - deltaY;
parente._y = parente._y + deltaX;
}
comportamentoGruppo(capogruppoassorbito, parente);
}
if (((((sPCx > (sPx - 10)) && (sPCx < (sPx + 10))) && (sPCy < (sPy - (grandezza - 10)))) && (sPCy > (sPy - (grandezza + 10)))) && (orient == 1)) {
deltaX = sPCx - sPx;
deltaY = (sPCy - sPy) + grandezza;
if (parente._rotation == 0) {
parente._x = parente._x - deltaX;
parente._y = parente._y - deltaY;
}
if (parente._rotation == 90) {
parente._x = parente._x + deltaY;
parente._y = parente._y - deltaX;
}
if (parente._rotation == 180) {
parente._x = parente._x + deltaX;
parente._y = parente._y + deltaY;
}
if (parente._rotation == -90) {
parente._x = parente._x - deltaY;
parente._y = parente._y + deltaX;
}
comportamentoGruppo(capogruppoassorbito, parente);
}
}
function controllaCollegati(parente) {
calcPezziCollegati(parente);
myPiece = parente;
var stringa_mycollegati;
stringa_mycollegati = CollegatiInMioGruppo(parente, parente);
trace("stringa collegati" + stringa_mycollegati);
array_collegati = stringa_mycollegati.split(",");
var i = 1;
while (i <= _root.numPiece) {
if (parente.hitTest(_root[_root.nomePezzo + i]) && (_root[_root.nomePezzo + i] != parente)) {
capogruppoassorbito = _root.nomePezzo + i;
trace("capogruppo" + capogruppoassorbito);
var stringa_gruppo_minore;
stringa_gruppo_minore = CollegatiInMioGruppo(_root[_root.nomePezzo + i], parente);
array_gruppo_minore = stringa_gruppo_minore.split(",");
var j1 = 0;
while (j1 < array_collegati.length) {
var j2 = 0;
while (j2 < array_gruppo_minore.length) {
if (array_collegati[j1] == array_gruppo_minore[j2]) {
superPezzo = array_gruppo_minore[j2];
trace("superpezzominore:" + superPezzo);
break;
}
j2++;
}
j1++;
}
if (parente._rotation == _root[_root.nomePezzo + i]._rotation) {
rilevaCoppiaSuper(superPezzo, parente);
}
}
i++;
}
}
function calcPezziCollegati(pezzo) {
name = parseInt(pezzo._name.substr(1));
resto = name % pPerRiga;
collegaUp = _root.nomePezzo + (name - pPerRiga);
collegaDown = _root.nomePezzo + (name + pPerRiga);
collegaLeft = ((resto == 1) ? undefined : (_root.nomePezzo + (name - 1)));
collegaRight = ((resto == 0) ? undefined : (_root.nomePezzo + (name + 1)));
}
fx1 = new sound();
fx1.attachSound("fx1");
_visible = false;
grandezza = _root.grandezza;
pPerRiga = _root.pPerRiga;
Symbol 21 Button
on (press) {
if (_parent == _root) {
if (Key.isDown(17)) {
_rotation = (_rotation + 90);
}
startDrag (this);
} else {
if (Key.isDown(17)) {
_parent._rotation = _parent._rotation + 90;
}
startDrag (_parent);
}
}
on (release, releaseOutside) {
if (Number(getTimer() - lastClick) < 300) {
if (_parent == _root) {
_rotation = (_rotation + 90);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
_parent._rotation = _parent._rotation + 90;
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
stopDrag();
} else {
lastClick = getTimer();
stopDrag();
if (_parent == _root) {
master.controllaCollegati(this);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
master.controllaCollegati(_parent);
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
}
}
Symbol 24 Button
on (press) {
if (_parent == _root) {
if (Key.isDown(17)) {
_rotation = (_rotation + 90);
}
startDrag (this);
} else {
if (Key.isDown(17)) {
_parent._rotation = _parent._rotation + 90;
}
startDrag (_parent);
}
}
on (release, releaseOutside) {
if (Number(getTimer() - lastClick) < 300) {
if (_parent == _root) {
_rotation = (_rotation + 90);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
_parent._rotation = _parent._rotation + 90;
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
stopDrag();
} else {
lastClick = getTimer();
stopDrag();
if (_parent == _root) {
master.controllaCollegati(this);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
master.controllaCollegati(_parent);
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
}
}
Symbol 27 Button
on (press) {
if (_parent == _root) {
if (Key.isDown(17)) {
_rotation = (_rotation + 90);
}
startDrag (this);
} else {
if (Key.isDown(17)) {
_parent._rotation = _parent._rotation + 90;
}
startDrag (_parent);
}
}
on (release, releaseOutside) {
if (Number(getTimer() - lastClick) < 300) {
if (_parent == _root) {
_rotation = (_rotation + 90);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
_parent._rotation = _parent._rotation + 90;
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
stopDrag();
} else {
lastClick = getTimer();
stopDrag();
if (_parent == _root) {
master.controllaCollegati(this);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
master.controllaCollegati(_parent);
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
}
}
Symbol 30 Button
on (press) {
if (_parent == _root) {
if (Key.isDown(17)) {
_rotation = (_rotation + 90);
}
startDrag (this);
} else {
if (Key.isDown(17)) {
_parent._rotation = _parent._rotation + 90;
}
startDrag (_parent);
}
}
on (release, releaseOutside) {
if (Number(getTimer() - lastClick) < 300) {
if (_parent == _root) {
_rotation = (_rotation + 90);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
_parent._rotation = _parent._rotation + 90;
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
stopDrag();
} else {
lastClick = getTimer();
stopDrag();
if (_parent == _root) {
master.controllaCollegati(this);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
master.controllaCollegati(_parent);
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
}
}
Symbol 33 Button
on (press) {
if (_parent == _root) {
if (Key.isDown(17)) {
_rotation = (_rotation + 90);
}
startDrag (this);
} else {
if (Key.isDown(17)) {
_parent._rotation = _parent._rotation + 90;
}
startDrag (_parent);
}
}
on (release, releaseOutside) {
if (Number(getTimer() - lastClick) < 300) {
if (_parent == _root) {
_rotation = (_rotation + 90);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
_parent._rotation = _parent._rotation + 90;
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
stopDrag();
} else {
lastClick = getTimer();
stopDrag();
if (_parent == _root) {
master.controllaCollegati(this);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
master.controllaCollegati(_parent);
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
}
}
Symbol 36 Button
on (press) {
if (_parent == _root) {
if (Key.isDown(17)) {
_rotation = (_rotation + 90);
}
startDrag (this);
} else {
if (Key.isDown(17)) {
_parent._rotation = _parent._rotation + 90;
}
startDrag (_parent);
}
}
on (release, releaseOutside) {
if (Number(getTimer() - lastClick) < 300) {
if (_parent == _root) {
_rotation = (_rotation + 90);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
_parent._rotation = _parent._rotation + 90;
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
stopDrag();
} else {
lastClick = getTimer();
stopDrag();
if (_parent == _root) {
master.controllaCollegati(this);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
master.controllaCollegati(_parent);
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
}
}
Symbol 39 Button
on (press) {
if (_parent == _root) {
if (Key.isDown(17)) {
_rotation = (_rotation + 90);
}
startDrag (this);
} else {
if (Key.isDown(17)) {
_parent._rotation = _parent._rotation + 90;
}
startDrag (_parent);
}
}
on (release, releaseOutside) {
if (Number(getTimer() - lastClick) < 300) {
if (_parent == _root) {
_rotation = (_rotation + 90);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
_parent._rotation = _parent._rotation + 90;
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
stopDrag();
} else {
lastClick = getTimer();
stopDrag();
if (_parent == _root) {
master.controllaCollegati(this);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
master.controllaCollegati(_parent);
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
}
}
Symbol 42 Button
on (press) {
if (_parent == _root) {
if (Key.isDown(17)) {
_rotation = (_rotation + 90);
}
startDrag (this);
} else {
if (Key.isDown(17)) {
_parent._rotation = _parent._rotation + 90;
}
startDrag (_parent);
}
}
on (release, releaseOutside) {
if (Number(getTimer() - lastClick) < 300) {
if (_parent == _root) {
_rotation = (_rotation + 90);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
_parent._rotation = _parent._rotation + 90;
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
stopDrag();
} else {
lastClick = getTimer();
stopDrag();
if (_parent == _root) {
master.controllaCollegati(this);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
master.controllaCollegati(_parent);
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
}
}
Symbol 46 Button
on (press) {
if (_parent == _root) {
if (Key.isDown(17)) {
_rotation = (_rotation + 90);
}
startDrag (this);
} else {
if (Key.isDown(17)) {
_parent._rotation = _parent._rotation + 90;
}
startDrag (_parent);
}
}
on (release, releaseOutside) {
if (Number(getTimer() - lastClick) < 300) {
if (_parent == _root) {
_rotation = (_rotation + 90);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
_parent._rotation = _parent._rotation + 90;
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
stopDrag();
} else {
lastClick = getTimer();
stopDrag();
if (_parent == _root) {
master.controllaCollegati(this);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
master.controllaCollegati(_parent);
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
}
}
Symbol 49 Button
on (press) {
if (_parent == _root) {
if (Key.isDown(17)) {
_rotation = (_rotation + 90);
}
startDrag (this);
} else {
if (Key.isDown(17)) {
_parent._rotation = _parent._rotation + 90;
}
startDrag (_parent);
}
}
on (release, releaseOutside) {
if (Number(getTimer() - lastClick) < 300) {
if (_parent == _root) {
_rotation = (_rotation + 90);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
_parent._rotation = _parent._rotation + 90;
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
stopDrag();
} else {
lastClick = getTimer();
stopDrag();
if (_parent == _root) {
master.controllaCollegati(this);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
master.controllaCollegati(_parent);
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
}
}
Symbol 52 Button
on (press) {
if (_parent == _root) {
if (Key.isDown(17)) {
_rotation = (_rotation + 90);
}
startDrag (this);
} else {
if (Key.isDown(17)) {
_parent._rotation = _parent._rotation + 90;
}
startDrag (_parent);
}
}
on (release, releaseOutside) {
if (Number(getTimer() - lastClick) < 300) {
if (_parent == _root) {
_rotation = (_rotation + 90);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
_parent._rotation = _parent._rotation + 90;
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
stopDrag();
} else {
lastClick = getTimer();
stopDrag();
if (_parent == _root) {
master.controllaCollegati(this);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
master.controllaCollegati(_parent);
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
}
}
Symbol 55 Button
on (press) {
if (_parent == _root) {
if (Key.isDown(17)) {
_rotation = (_rotation + 90);
}
startDrag (this);
} else {
if (Key.isDown(17)) {
_parent._rotation = _parent._rotation + 90;
}
startDrag (_parent);
}
}
on (release, releaseOutside) {
if (Number(getTimer() - lastClick) < 300) {
if (_parent == _root) {
_rotation = (_rotation + 90);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
_parent._rotation = _parent._rotation + 90;
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
stopDrag();
} else {
lastClick = getTimer();
stopDrag();
if (_parent == _root) {
master.controllaCollegati(this);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
master.controllaCollegati(_parent);
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
}
}
Symbol 58 Button
on (press) {
if (_parent == _root) {
if (Key.isDown(17)) {
_rotation = (_rotation + 90);
}
startDrag (this);
} else {
if (Key.isDown(17)) {
_parent._rotation = _parent._rotation + 90;
}
startDrag (_parent);
}
}
on (release, releaseOutside) {
if (Number(getTimer() - lastClick) < 300) {
if (_parent == _root) {
_rotation = (_rotation + 90);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
_parent._rotation = _parent._rotation + 90;
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
stopDrag();
} else {
lastClick = getTimer();
stopDrag();
if (_parent == _root) {
master.controllaCollegati(this);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
master.controllaCollegati(_parent);
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
}
}
Symbol 61 Button
on (press) {
if (_parent == _root) {
if (Key.isDown(17)) {
_rotation = (_rotation + 90);
}
startDrag (this);
} else {
if (Key.isDown(17)) {
_parent._rotation = _parent._rotation + 90;
}
startDrag (_parent);
}
}
on (release, releaseOutside) {
if (Number(getTimer() - lastClick) < 300) {
if (_parent == _root) {
_rotation = (_rotation + 90);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
_parent._rotation = _parent._rotation + 90;
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
stopDrag();
} else {
lastClick = getTimer();
stopDrag();
if (_parent == _root) {
master.controllaCollegati(this);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
master.controllaCollegati(_parent);
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
}
}
Symbol 64 Button
on (press) {
if (_parent == _root) {
if (Key.isDown(17)) {
_rotation = (_rotation + 90);
}
startDrag (this);
} else {
if (Key.isDown(17)) {
_parent._rotation = _parent._rotation + 90;
}
startDrag (_parent);
}
}
on (release, releaseOutside) {
if (Number(getTimer() - lastClick) < 300) {
if (_parent == _root) {
_rotation = (_rotation + 90);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
_parent._rotation = _parent._rotation + 90;
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
stopDrag();
} else {
lastClick = getTimer();
stopDrag();
if (_parent == _root) {
master.controllaCollegati(this);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
master.controllaCollegati(_parent);
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
}
}
Symbol 67 Button
on (press) {
if (_parent == _root) {
if (Key.isDown(17)) {
_rotation = (_rotation + 90);
}
startDrag (this);
} else {
if (Key.isDown(17)) {
_parent._rotation = _parent._rotation + 90;
}
startDrag (_parent);
}
}
on (release, releaseOutside) {
if (Number(getTimer() - lastClick) < 300) {
if (_parent == _root) {
_rotation = (_rotation + 90);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
_parent._rotation = _parent._rotation + 90;
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
stopDrag();
} else {
lastClick = getTimer();
stopDrag();
if (_parent == _root) {
master.controllaCollegati(this);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
master.controllaCollegati(_parent);
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
}
}
Symbol 70 Button
on (press) {
if (_parent == _root) {
if (Key.isDown(17)) {
_rotation = (_rotation + 90);
}
startDrag (this);
} else {
if (Key.isDown(17)) {
_parent._rotation = _parent._rotation + 90;
}
startDrag (_parent);
}
}
on (release, releaseOutside) {
if (Number(getTimer() - lastClick) < 300) {
if (_parent == _root) {
_rotation = (_rotation + 90);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
_parent._rotation = _parent._rotation + 90;
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
stopDrag();
} else {
lastClick = getTimer();
stopDrag();
if (_parent == _root) {
master.controllaCollegati(this);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
master.controllaCollegati(_parent);
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
}
}
Symbol 73 Button
on (press) {
if (_parent == _root) {
if (Key.isDown(17)) {
_rotation = (_rotation + 90);
}
startDrag (this);
} else {
if (Key.isDown(17)) {
_parent._rotation = _parent._rotation + 90;
}
startDrag (_parent);
}
}
on (release, releaseOutside) {
if (Number(getTimer() - lastClick) < 300) {
if (_parent == _root) {
_rotation = (_rotation + 90);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
_parent._rotation = _parent._rotation + 90;
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
stopDrag();
} else {
lastClick = getTimer();
stopDrag();
if (_parent == _root) {
master.controllaCollegati(this);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
master.controllaCollegati(_parent);
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
}
}
Symbol 76 Button
on (press) {
if (_parent == _root) {
if (Key.isDown(17)) {
_rotation = (_rotation + 90);
}
startDrag (this);
} else {
if (Key.isDown(17)) {
_parent._rotation = _parent._rotation + 90;
}
startDrag (_parent);
}
}
on (release, releaseOutside) {
if (Number(getTimer() - lastClick) < 300) {
if (_parent == _root) {
_rotation = (_rotation + 90);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
_parent._rotation = _parent._rotation + 90;
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
stopDrag();
} else {
lastClick = getTimer();
stopDrag();
if (_parent == _root) {
master.controllaCollegati(this);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
master.controllaCollegati(_parent);
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
}
}
Symbol 79 Button
on (press) {
if (_parent == _root) {
if (Key.isDown(17)) {
_rotation = (_rotation + 90);
}
startDrag (this);
} else {
if (Key.isDown(17)) {
_parent._rotation = _parent._rotation + 90;
}
startDrag (_parent);
}
}
on (release, releaseOutside) {
if (Number(getTimer() - lastClick) < 300) {
if (_parent == _root) {
_rotation = (_rotation + 90);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
_parent._rotation = _parent._rotation + 90;
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
stopDrag();
} else {
lastClick = getTimer();
stopDrag();
if (_parent == _root) {
master.controllaCollegati(this);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
master.controllaCollegati(_parent);
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
}
}
Symbol 82 Button
on (press) {
if (_parent == _root) {
if (Key.isDown(17)) {
_rotation = (_rotation + 90);
}
startDrag (this);
} else {
if (Key.isDown(17)) {
_parent._rotation = _parent._rotation + 90;
}
startDrag (_parent);
}
}
on (release, releaseOutside) {
if (Number(getTimer() - lastClick) < 300) {
if (_parent == _root) {
_rotation = (_rotation + 90);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
_parent._rotation = _parent._rotation + 90;
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
stopDrag();
} else {
lastClick = getTimer();
stopDrag();
if (_parent == _root) {
master.controllaCollegati(this);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
master.controllaCollegati(_parent);
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
}
}
Symbol 85 Button
on (press) {
if (_parent == _root) {
if (Key.isDown(17)) {
_rotation = (_rotation + 90);
}
startDrag (this);
} else {
if (Key.isDown(17)) {
_parent._rotation = _parent._rotation + 90;
}
startDrag (_parent);
}
}
on (release, releaseOutside) {
if (Number(getTimer() - lastClick) < 300) {
if (_parent == _root) {
_rotation = (_rotation + 90);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
_parent._rotation = _parent._rotation + 90;
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
stopDrag();
} else {
lastClick = getTimer();
stopDrag();
if (_parent == _root) {
master.controllaCollegati(this);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
master.controllaCollegati(_parent);
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
}
}
Symbol 88 Button
on (press) {
if (_parent == _root) {
if (Key.isDown(17)) {
_rotation = (_rotation + 90);
}
startDrag (this);
} else {
if (Key.isDown(17)) {
_parent._rotation = _parent._rotation + 90;
}
startDrag (_parent);
}
}
on (release, releaseOutside) {
if (Number(getTimer() - lastClick) < 300) {
if (_parent == _root) {
_rotation = (_rotation + 90);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
_parent._rotation = _parent._rotation + 90;
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
stopDrag();
} else {
lastClick = getTimer();
stopDrag();
if (_parent == _root) {
master.controllaCollegati(this);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
master.controllaCollegati(_parent);
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
}
}
Symbol 91 Button
on (press) {
if (_parent == _root) {
if (Key.isDown(17)) {
_rotation = (_rotation + 90);
}
startDrag (this);
} else {
if (Key.isDown(17)) {
_parent._rotation = _parent._rotation + 90;
}
startDrag (_parent);
}
}
on (release, releaseOutside) {
if (Number(getTimer() - lastClick) < 300) {
if (_parent == _root) {
_rotation = (_rotation + 90);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
_parent._rotation = _parent._rotation + 90;
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
stopDrag();
} else {
lastClick = getTimer();
stopDrag();
if (_parent == _root) {
master.controllaCollegati(this);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
master.controllaCollegati(_parent);
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
}
}
Symbol 94 Button
on (press) {
if (_parent == _root) {
if (Key.isDown(17)) {
_rotation = (_rotation + 90);
}
startDrag (this);
} else {
if (Key.isDown(17)) {
_parent._rotation = _parent._rotation + 90;
}
startDrag (_parent);
}
}
on (release, releaseOutside) {
if (Number(getTimer() - lastClick) < 300) {
if (_parent == _root) {
_rotation = (_rotation + 90);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
_parent._rotation = _parent._rotation + 90;
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
stopDrag();
} else {
lastClick = getTimer();
stopDrag();
if (_parent == _root) {
master.controllaCollegati(this);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
master.controllaCollegati(_parent);
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
}
}
Symbol 97 Button
on (press) {
if (_parent == _root) {
if (Key.isDown(17)) {
_rotation = (_rotation + 90);
}
startDrag (this);
} else {
if (Key.isDown(17)) {
_parent._rotation = _parent._rotation + 90;
}
startDrag (_parent);
}
}
on (release, releaseOutside) {
if (Number(getTimer() - lastClick) < 300) {
if (_parent == _root) {
_rotation = (_rotation + 90);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
_parent._rotation = _parent._rotation + 90;
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
stopDrag();
} else {
lastClick = getTimer();
stopDrag();
if (_parent == _root) {
master.controllaCollegati(this);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
master.controllaCollegati(_parent);
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
}
}
Symbol 100 Button
on (press) {
if (_parent == _root) {
if (Key.isDown(17)) {
_rotation = (_rotation + 90);
}
startDrag (this);
} else {
if (Key.isDown(17)) {
_parent._rotation = _parent._rotation + 90;
}
startDrag (_parent);
}
}
on (release, releaseOutside) {
if (Number(getTimer() - lastClick) < 300) {
if (_parent == _root) {
_rotation = (_rotation + 90);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
_parent._rotation = _parent._rotation + 90;
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
stopDrag();
} else {
lastClick = getTimer();
stopDrag();
if (_parent == _root) {
master.controllaCollegati(this);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
master.controllaCollegati(_parent);
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
}
}
Symbol 103 Button
on (press) {
if (_parent == _root) {
if (Key.isDown(17)) {
_rotation = (_rotation + 90);
}
startDrag (this);
} else {
if (Key.isDown(17)) {
_parent._rotation = _parent._rotation + 90;
}
startDrag (_parent);
}
}
on (release, releaseOutside) {
if (Number(getTimer() - lastClick) < 300) {
if (_parent == _root) {
_rotation = (_rotation + 90);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
_parent._rotation = _parent._rotation + 90;
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
stopDrag();
} else {
lastClick = getTimer();
stopDrag();
if (_parent == _root) {
master.controllaCollegati(this);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
master.controllaCollegati(_parent);
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
}
}
Symbol 106 Button
on (press) {
if (_parent == _root) {
if (Key.isDown(17)) {
_rotation = (_rotation + 90);
}
startDrag (this);
} else {
if (Key.isDown(17)) {
_parent._rotation = _parent._rotation + 90;
}
startDrag (_parent);
}
}
on (release, releaseOutside) {
if (Number(getTimer() - lastClick) < 300) {
if (_parent == _root) {
_rotation = (_rotation + 90);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
_parent._rotation = _parent._rotation + 90;
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
stopDrag();
} else {
lastClick = getTimer();
stopDrag();
if (_parent == _root) {
master.controllaCollegati(this);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
master.controllaCollegati(_parent);
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
}
}
Symbol 109 Button
on (press) {
if (_parent == _root) {
if (Key.isDown(17)) {
_rotation = (_rotation + 90);
}
startDrag (this);
} else {
if (Key.isDown(17)) {
_parent._rotation = _parent._rotation + 90;
}
startDrag (_parent);
}
}
on (release, releaseOutside) {
if (Number(getTimer() - lastClick) < 300) {
if (_parent == _root) {
_rotation = (_rotation + 90);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
_parent._rotation = _parent._rotation + 90;
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
stopDrag();
} else {
lastClick = getTimer();
stopDrag();
if (_parent == _root) {
master.controllaCollegati(this);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
master.controllaCollegati(_parent);
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
}
}
Symbol 112 Button
on (press) {
if (_parent == _root) {
if (Key.isDown(17)) {
_rotation = (_rotation + 90);
}
startDrag (this);
} else {
if (Key.isDown(17)) {
_parent._rotation = _parent._rotation + 90;
}
startDrag (_parent);
}
}
on (release, releaseOutside) {
if (Number(getTimer() - lastClick) < 300) {
if (_parent == _root) {
_rotation = (_rotation + 90);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
_parent._rotation = _parent._rotation + 90;
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
stopDrag();
} else {
lastClick = getTimer();
stopDrag();
if (_parent == _root) {
master.controllaCollegati(this);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
master.controllaCollegati(_parent);
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
}
}
Symbol 115 Button
on (press) {
if (_parent == _root) {
if (Key.isDown(17)) {
_rotation = (_rotation + 90);
}
startDrag (this);
} else {
if (Key.isDown(17)) {
_parent._rotation = _parent._rotation + 90;
}
startDrag (_parent);
}
}
on (release, releaseOutside) {
if (Number(getTimer() - lastClick) < 300) {
if (_parent == _root) {
_rotation = (_rotation + 90);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
_parent._rotation = _parent._rotation + 90;
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
stopDrag();
} else {
lastClick = getTimer();
stopDrag();
if (_parent == _root) {
master.controllaCollegati(this);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
master.controllaCollegati(_parent);
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
}
}
Symbol 118 Button
on (press) {
if (_parent == _root) {
if (Key.isDown(17)) {
_rotation = (_rotation + 90);
}
startDrag (this);
} else {
if (Key.isDown(17)) {
_parent._rotation = _parent._rotation + 90;
}
startDrag (_parent);
}
}
on (release, releaseOutside) {
if (Number(getTimer() - lastClick) < 300) {
if (_parent == _root) {
_rotation = (_rotation + 90);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
_parent._rotation = _parent._rotation + 90;
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
stopDrag();
} else {
lastClick = getTimer();
stopDrag();
if (_parent == _root) {
master.controllaCollegati(this);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
master.controllaCollegati(_parent);
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
}
}
Symbol 121 Button
on (press) {
if (_parent == _root) {
if (Key.isDown(17)) {
_rotation = (_rotation + 90);
}
startDrag (this);
} else {
if (Key.isDown(17)) {
_parent._rotation = _parent._rotation + 90;
}
startDrag (_parent);
}
}
on (release, releaseOutside) {
if (Number(getTimer() - lastClick) < 300) {
if (_parent == _root) {
_rotation = (_rotation + 90);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
_parent._rotation = _parent._rotation + 90;
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
stopDrag();
} else {
lastClick = getTimer();
stopDrag();
if (_parent == _root) {
master.controllaCollegati(this);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
master.controllaCollegati(_parent);
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
}
}
Symbol 124 Button
on (press) {
if (_parent == _root) {
if (Key.isDown(17)) {
_rotation = (_rotation + 90);
}
startDrag (this);
} else {
if (Key.isDown(17)) {
_parent._rotation = _parent._rotation + 90;
}
startDrag (_parent);
}
}
on (release, releaseOutside) {
if (Number(getTimer() - lastClick) < 300) {
if (_parent == _root) {
_rotation = (_rotation + 90);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
_parent._rotation = _parent._rotation + 90;
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
stopDrag();
} else {
lastClick = getTimer();
stopDrag();
if (_parent == _root) {
master.controllaCollegati(this);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
master.controllaCollegati(_parent);
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
}
}
Symbol 127 Button
on (press) {
if (_parent == _root) {
if (Key.isDown(17)) {
_rotation = (_rotation + 90);
}
startDrag (this);
} else {
if (Key.isDown(17)) {
_parent._rotation = _parent._rotation + 90;
}
startDrag (_parent);
}
}
on (release, releaseOutside) {
if (Number(getTimer() - lastClick) < 300) {
if (_parent == _root) {
_rotation = (_rotation + 90);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
_parent._rotation = _parent._rotation + 90;
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
stopDrag();
} else {
lastClick = getTimer();
stopDrag();
if (_parent == _root) {
master.controllaCollegati(this);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
master.controllaCollegati(_parent);
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
}
}
Symbol 130 Button
on (press) {
if (_parent == _root) {
if (Key.isDown(17)) {
_rotation = (_rotation + 90);
}
startDrag (this);
} else {
if (Key.isDown(17)) {
_parent._rotation = _parent._rotation + 90;
}
startDrag (_parent);
}
}
on (release, releaseOutside) {
if (Number(getTimer() - lastClick) < 300) {
if (_parent == _root) {
_rotation = (_rotation + 90);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
_parent._rotation = _parent._rotation + 90;
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
stopDrag();
} else {
lastClick = getTimer();
stopDrag();
if (_parent == _root) {
master.controllaCollegati(this);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
master.controllaCollegati(_parent);
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
}
}
Symbol 133 Button
on (press) {
if (_parent == _root) {
if (Key.isDown(17)) {
_rotation = (_rotation + 90);
}
startDrag (this);
} else {
if (Key.isDown(17)) {
_parent._rotation = _parent._rotation + 90;
}
startDrag (_parent);
}
}
on (release, releaseOutside) {
if (Number(getTimer() - lastClick) < 300) {
if (_parent == _root) {
_rotation = (_rotation + 90);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
_parent._rotation = _parent._rotation + 90;
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
stopDrag();
} else {
lastClick = getTimer();
stopDrag();
if (_parent == _root) {
master.controllaCollegati(this);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
master.controllaCollegati(_parent);
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
}
}
Symbol 136 Button
on (press) {
if (_parent == _root) {
if (Key.isDown(17)) {
_rotation = (_rotation + 90);
}
startDrag (this);
} else {
if (Key.isDown(17)) {
_parent._rotation = _parent._rotation + 90;
}
startDrag (_parent);
}
}
on (release, releaseOutside) {
if (Number(getTimer() - lastClick) < 300) {
if (_parent == _root) {
_rotation = (_rotation + 90);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
_parent._rotation = _parent._rotation + 90;
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
stopDrag();
} else {
lastClick = getTimer();
stopDrag();
if (_parent == _root) {
master.controllaCollegati(this);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
master.controllaCollegati(_parent);
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
}
}
Symbol 139 Button
on (press) {
if (_parent == _root) {
if (Key.isDown(17)) {
_rotation = (_rotation + 90);
}
startDrag (this);
} else {
if (Key.isDown(17)) {
_parent._rotation = _parent._rotation + 90;
}
startDrag (_parent);
}
}
on (release, releaseOutside) {
if (Number(getTimer() - lastClick) < 300) {
if (_parent == _root) {
_rotation = (_rotation + 90);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
_parent._rotation = _parent._rotation + 90;
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
stopDrag();
} else {
lastClick = getTimer();
stopDrag();
if (_parent == _root) {
master.controllaCollegati(this);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
master.controllaCollegati(_parent);
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
}
}
Symbol 142 Button
on (press) {
if (_parent == _root) {
if (Key.isDown(17)) {
_rotation = (_rotation + 90);
}
startDrag (this);
} else {
if (Key.isDown(17)) {
_parent._rotation = _parent._rotation + 90;
}
startDrag (_parent);
}
}
on (release, releaseOutside) {
if (Number(getTimer() - lastClick) < 300) {
if (_parent == _root) {
_rotation = (_rotation + 90);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
_parent._rotation = _parent._rotation + 90;
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
stopDrag();
} else {
lastClick = getTimer();
stopDrag();
if (_parent == _root) {
master.controllaCollegati(this);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
master.controllaCollegati(_parent);
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
}
}
Symbol 145 Button
on (press) {
if (_parent == _root) {
if (Key.isDown(17)) {
_rotation = (_rotation + 90);
}
startDrag (this);
} else {
if (Key.isDown(17)) {
_parent._rotation = _parent._rotation + 90;
}
startDrag (_parent);
}
}
on (release, releaseOutside) {
if (Number(getTimer() - lastClick) < 300) {
if (_parent == _root) {
_rotation = (_rotation + 90);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
_parent._rotation = _parent._rotation + 90;
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
stopDrag();
} else {
lastClick = getTimer();
stopDrag();
if (_parent == _root) {
master.controllaCollegati(this);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
master.controllaCollegati(_parent);
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
}
}
Symbol 148 Button
on (press) {
if (_parent == _root) {
if (Key.isDown(17)) {
_rotation = (_rotation + 90);
}
startDrag (this);
} else {
if (Key.isDown(17)) {
_parent._rotation = _parent._rotation + 90;
}
startDrag (_parent);
}
}
on (release, releaseOutside) {
if (Number(getTimer() - lastClick) < 300) {
if (_parent == _root) {
_rotation = (_rotation + 90);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
_parent._rotation = _parent._rotation + 90;
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
stopDrag();
} else {
lastClick = getTimer();
stopDrag();
if (_parent == _root) {
master.controllaCollegati(this);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
master.controllaCollegati(_parent);
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
}
}
Symbol 151 Button
on (press) {
if (_parent == _root) {
if (Key.isDown(17)) {
_rotation = (_rotation + 90);
}
startDrag (this);
} else {
if (Key.isDown(17)) {
_parent._rotation = _parent._rotation + 90;
}
startDrag (_parent);
}
}
on (release, releaseOutside) {
if (Number(getTimer() - lastClick) < 300) {
if (_parent == _root) {
_rotation = (_rotation + 90);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
_parent._rotation = _parent._rotation + 90;
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
stopDrag();
} else {
lastClick = getTimer();
stopDrag();
if (_parent == _root) {
master.controllaCollegati(this);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
master.controllaCollegati(_parent);
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
}
}
Symbol 154 Button
on (press) {
if (_parent == _root) {
if (Key.isDown(17)) {
_rotation = (_rotation + 90);
}
startDrag (this);
} else {
if (Key.isDown(17)) {
_parent._rotation = _parent._rotation + 90;
}
startDrag (_parent);
}
}
on (release, releaseOutside) {
if (Number(getTimer() - lastClick) < 300) {
if (_parent == _root) {
_rotation = (_rotation + 90);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
_parent._rotation = _parent._rotation + 90;
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
stopDrag();
} else {
lastClick = getTimer();
stopDrag();
if (_parent == _root) {
master.controllaCollegati(this);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
master.controllaCollegati(_parent);
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
}
}
Symbol 157 Button
on (press) {
if (_parent == _root) {
if (Key.isDown(17)) {
_rotation = (_rotation + 90);
}
startDrag (this);
} else {
if (Key.isDown(17)) {
_parent._rotation = _parent._rotation + 90;
}
startDrag (_parent);
}
}
on (release, releaseOutside) {
if (Number(getTimer() - lastClick) < 300) {
if (_parent == _root) {
_rotation = (_rotation + 90);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
_parent._rotation = _parent._rotation + 90;
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
stopDrag();
} else {
lastClick = getTimer();
stopDrag();
if (_parent == _root) {
master.controllaCollegati(this);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
master.controllaCollegati(_parent);
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
}
}
Symbol 160 Button
on (press) {
if (_parent == _root) {
if (Key.isDown(17)) {
_rotation = (_rotation + 90);
}
startDrag (this);
} else {
if (Key.isDown(17)) {
_parent._rotation = _parent._rotation + 90;
}
startDrag (_parent);
}
}
on (release, releaseOutside) {
if (Number(getTimer() - lastClick) < 300) {
if (_parent == _root) {
_rotation = (_rotation + 90);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
_parent._rotation = _parent._rotation + 90;
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
stopDrag();
} else {
lastClick = getTimer();
stopDrag();
if (_parent == _root) {
master.controllaCollegati(this);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
master.controllaCollegati(_parent);
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
}
}
Symbol 163 Button
on (press) {
if (_parent == _root) {
if (Key.isDown(17)) {
_rotation = (_rotation + 90);
}
startDrag (this);
} else {
if (Key.isDown(17)) {
_parent._rotation = _parent._rotation + 90;
}
startDrag (_parent);
}
}
on (release, releaseOutside) {
if (Number(getTimer() - lastClick) < 300) {
if (_parent == _root) {
_rotation = (_rotation + 90);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
_parent._rotation = _parent._rotation + 90;
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
stopDrag();
} else {
lastClick = getTimer();
stopDrag();
if (_parent == _root) {
master.controllaCollegati(this);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
master.controllaCollegati(_parent);
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
}
}
Symbol 166 Button
on (press) {
if (_parent == _root) {
if (Key.isDown(17)) {
_rotation = (_rotation + 90);
}
startDrag (this);
} else {
if (Key.isDown(17)) {
_parent._rotation = _parent._rotation + 90;
}
startDrag (_parent);
}
}
on (release, releaseOutside) {
if (Number(getTimer() - lastClick) < 300) {
if (_parent == _root) {
_rotation = (_rotation + 90);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
_parent._rotation = _parent._rotation + 90;
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
stopDrag();
} else {
lastClick = getTimer();
stopDrag();
if (_parent == _root) {
master.controllaCollegati(this);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
master.controllaCollegati(_parent);
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
}
}
Symbol 169 Button
on (press) {
if (_parent == _root) {
if (Key.isDown(17)) {
_rotation = (_rotation + 90);
}
startDrag (this);
} else {
if (Key.isDown(17)) {
_parent._rotation = _parent._rotation + 90;
}
startDrag (_parent);
}
}
on (release, releaseOutside) {
if (Number(getTimer() - lastClick) < 300) {
if (_parent == _root) {
_rotation = (_rotation + 90);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
_parent._rotation = _parent._rotation + 90;
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
stopDrag();
} else {
lastClick = getTimer();
stopDrag();
if (_parent == _root) {
master.controllaCollegati(this);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
master.controllaCollegati(_parent);
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
}
}
Symbol 172 Button
on (press) {
if (_parent == _root) {
if (Key.isDown(17)) {
_rotation = (_rotation + 90);
}
startDrag (this);
} else {
if (Key.isDown(17)) {
_parent._rotation = _parent._rotation + 90;
}
startDrag (_parent);
}
}
on (release, releaseOutside) {
if (Number(getTimer() - lastClick) < 300) {
if (_parent == _root) {
_rotation = (_rotation + 90);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
_parent._rotation = _parent._rotation + 90;
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
stopDrag();
} else {
lastClick = getTimer();
stopDrag();
if (_parent == _root) {
master.controllaCollegati(this);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
master.controllaCollegati(_parent);
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
}
}
Symbol 175 Button
on (press) {
if (_parent == _root) {
if (Key.isDown(17)) {
_rotation = (_rotation + 90);
}
startDrag (this);
} else {
if (Key.isDown(17)) {
_parent._rotation = _parent._rotation + 90;
}
startDrag (_parent);
}
}
on (release, releaseOutside) {
if (Number(getTimer() - lastClick) < 300) {
if (_parent == _root) {
_rotation = (_rotation + 90);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
_parent._rotation = _parent._rotation + 90;
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
stopDrag();
} else {
lastClick = getTimer();
stopDrag();
if (_parent == _root) {
master.controllaCollegati(this);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
master.controllaCollegati(_parent);
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
}
}
Symbol 178 Button
on (press) {
if (_parent == _root) {
if (Key.isDown(17)) {
_rotation = (_rotation + 90);
}
startDrag (this);
} else {
if (Key.isDown(17)) {
_parent._rotation = _parent._rotation + 90;
}
startDrag (_parent);
}
}
on (release, releaseOutside) {
if (Number(getTimer() - lastClick) < 300) {
if (_parent == _root) {
_rotation = (_rotation + 90);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
_parent._rotation = _parent._rotation + 90;
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
stopDrag();
} else {
lastClick = getTimer();
stopDrag();
if (_parent == _root) {
master.controllaCollegati(this);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
master.controllaCollegati(_parent);
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
}
}
Symbol 181 Button
on (press) {
if (_parent == _root) {
if (Key.isDown(17)) {
_rotation = (_rotation + 90);
}
startDrag (this);
} else {
if (Key.isDown(17)) {
_parent._rotation = _parent._rotation + 90;
}
startDrag (_parent);
}
}
on (release, releaseOutside) {
if (Number(getTimer() - lastClick) < 300) {
if (_parent == _root) {
_rotation = (_rotation + 90);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
_parent._rotation = _parent._rotation + 90;
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
stopDrag();
} else {
lastClick = getTimer();
stopDrag();
if (_parent == _root) {
master.controllaCollegati(this);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
master.controllaCollegati(_parent);
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
}
}
Symbol 184 Button
on (press) {
if (_parent == _root) {
if (Key.isDown(17)) {
_rotation = (_rotation + 90);
}
startDrag (this);
} else {
if (Key.isDown(17)) {
_parent._rotation = _parent._rotation + 90;
}
startDrag (_parent);
}
}
on (release, releaseOutside) {
if (Number(getTimer() - lastClick) < 300) {
if (_parent == _root) {
_rotation = (_rotation + 90);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
_parent._rotation = _parent._rotation + 90;
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
stopDrag();
} else {
lastClick = getTimer();
stopDrag();
if (_parent == _root) {
master.controllaCollegati(this);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
master.controllaCollegati(_parent);
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
}
}
Symbol 187 Button
on (press) {
if (_parent == _root) {
if (Key.isDown(17)) {
_rotation = (_rotation + 90);
}
startDrag (this);
} else {
if (Key.isDown(17)) {
_parent._rotation = _parent._rotation + 90;
}
startDrag (_parent);
}
}
on (release, releaseOutside) {
if (Number(getTimer() - lastClick) < 300) {
if (_parent == _root) {
_rotation = (_rotation + 90);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
_parent._rotation = _parent._rotation + 90;
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
stopDrag();
} else {
lastClick = getTimer();
stopDrag();
if (_parent == _root) {
master.controllaCollegati(this);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
master.controllaCollegati(_parent);
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
}
}
Symbol 190 Button
on (press) {
if (_parent == _root) {
if (Key.isDown(17)) {
_rotation = (_rotation + 90);
}
startDrag (this);
} else {
if (Key.isDown(17)) {
_parent._rotation = _parent._rotation + 90;
}
startDrag (_parent);
}
}
on (release, releaseOutside) {
if (Number(getTimer() - lastClick) < 300) {
if (_parent == _root) {
_rotation = (_rotation + 90);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
_parent._rotation = _parent._rotation + 90;
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
stopDrag();
} else {
lastClick = getTimer();
stopDrag();
if (_parent == _root) {
master.controllaCollegati(this);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
master.controllaCollegati(_parent);
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
}
}
Symbol 193 Button
on (press) {
if (_parent == _root) {
if (Key.isDown(17)) {
_rotation = (_rotation + 90);
}
startDrag (this);
} else {
if (Key.isDown(17)) {
_parent._rotation = _parent._rotation + 90;
}
startDrag (_parent);
}
}
on (release, releaseOutside) {
if (Number(getTimer() - lastClick) < 300) {
if (_parent == _root) {
_rotation = (_rotation + 90);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
_parent._rotation = _parent._rotation + 90;
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
stopDrag();
} else {
lastClick = getTimer();
stopDrag();
if (_parent == _root) {
master.controllaCollegati(this);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
master.controllaCollegati(_parent);
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
}
}
Symbol 196 Button
on (press) {
if (_parent == _root) {
if (Key.isDown(17)) {
_rotation = (_rotation + 90);
}
startDrag (this);
} else {
if (Key.isDown(17)) {
_parent._rotation = _parent._rotation + 90;
}
startDrag (_parent);
}
}
on (release, releaseOutside) {
if (Number(getTimer() - lastClick) < 300) {
if (_parent == _root) {
_rotation = (_rotation + 90);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
_parent._rotation = _parent._rotation + 90;
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
stopDrag();
} else {
lastClick = getTimer();
stopDrag();
if (_parent == _root) {
master.controllaCollegati(this);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
master.controllaCollegati(_parent);
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
}
}
Symbol 199 Button
on (press) {
if (_parent == _root) {
if (Key.isDown(17)) {
_rotation = (_rotation + 90);
}
startDrag (this);
} else {
if (Key.isDown(17)) {
_parent._rotation = _parent._rotation + 90;
}
startDrag (_parent);
}
}
on (release, releaseOutside) {
if (Number(getTimer() - lastClick) < 300) {
if (_parent == _root) {
_rotation = (_rotation + 90);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
_parent._rotation = _parent._rotation + 90;
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
stopDrag();
} else {
lastClick = getTimer();
stopDrag();
if (_parent == _root) {
master.controllaCollegati(this);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
master.controllaCollegati(_parent);
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
}
}
Symbol 202 Button
on (press) {
if (_parent == _root) {
if (Key.isDown(17)) {
_rotation = (_rotation + 90);
}
startDrag (this);
} else {
if (Key.isDown(17)) {
_parent._rotation = _parent._rotation + 90;
}
startDrag (_parent);
}
}
on (release, releaseOutside) {
if (Number(getTimer() - lastClick) < 300) {
if (_parent == _root) {
_rotation = (_rotation + 90);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
_parent._rotation = _parent._rotation + 90;
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
stopDrag();
} else {
lastClick = getTimer();
stopDrag();
if (_parent == _root) {
master.controllaCollegati(this);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
master.controllaCollegati(_parent);
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
}
}
Symbol 205 Button
on (press) {
if (_parent == _root) {
if (Key.isDown(17)) {
_rotation = (_rotation + 90);
}
startDrag (this);
} else {
if (Key.isDown(17)) {
_parent._rotation = _parent._rotation + 90;
}
startDrag (_parent);
}
}
on (release, releaseOutside) {
if (Number(getTimer() - lastClick) < 300) {
if (_parent == _root) {
_rotation = (_rotation + 90);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
_parent._rotation = _parent._rotation + 90;
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
stopDrag();
} else {
lastClick = getTimer();
stopDrag();
if (_parent == _root) {
master.controllaCollegati(this);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
master.controllaCollegati(_parent);
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
}
}
Symbol 208 Button
on (press) {
if (_parent == _root) {
if (Key.isDown(17)) {
_rotation = (_rotation + 90);
}
startDrag (this);
} else {
if (Key.isDown(17)) {
_parent._rotation = _parent._rotation + 90;
}
startDrag (_parent);
}
}
on (release, releaseOutside) {
if (Number(getTimer() - lastClick) < 300) {
if (_parent == _root) {
_rotation = (_rotation + 90);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
_parent._rotation = _parent._rotation + 90;
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
stopDrag();
} else {
lastClick = getTimer();
stopDrag();
if (_parent == _root) {
master.controllaCollegati(this);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
master.controllaCollegati(_parent);
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
}
}
Symbol 211 Button
on (press) {
if (_parent == _root) {
if (Key.isDown(17)) {
_rotation = (_rotation + 90);
}
startDrag (this);
} else {
if (Key.isDown(17)) {
_parent._rotation = _parent._rotation + 90;
}
startDrag (_parent);
}
}
on (release, releaseOutside) {
if (Number(getTimer() - lastClick) < 300) {
if (_parent == _root) {
_rotation = (_rotation + 90);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
_parent._rotation = _parent._rotation + 90;
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
stopDrag();
} else {
lastClick = getTimer();
stopDrag();
if (_parent == _root) {
master.controllaCollegati(this);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
master.controllaCollegati(_parent);
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
}
}
Symbol 214 Button
on (press) {
if (_parent == _root) {
if (Key.isDown(17)) {
_rotation = (_rotation + 90);
}
startDrag (this);
} else {
if (Key.isDown(17)) {
_parent._rotation = _parent._rotation + 90;
}
startDrag (_parent);
}
}
on (release, releaseOutside) {
if (Number(getTimer() - lastClick) < 300) {
if (_parent == _root) {
_rotation = (_rotation + 90);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
_parent._rotation = _parent._rotation + 90;
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
stopDrag();
} else {
lastClick = getTimer();
stopDrag();
if (_parent == _root) {
master.controllaCollegati(this);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
master.controllaCollegati(_parent);
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
}
}
Symbol 217 Button
on (press) {
if (_parent == _root) {
if (Key.isDown(17)) {
_rotation = (_rotation + 90);
}
startDrag (this);
} else {
if (Key.isDown(17)) {
_parent._rotation = _parent._rotation + 90;
}
startDrag (_parent);
}
}
on (release, releaseOutside) {
if (Number(getTimer() - lastClick) < 300) {
if (_parent == _root) {
_rotation = (_rotation + 90);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
_parent._rotation = _parent._rotation + 90;
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
stopDrag();
} else {
lastClick = getTimer();
stopDrag();
if (_parent == _root) {
master.controllaCollegati(this);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
master.controllaCollegati(_parent);
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
}
}
Symbol 220 Button
on (press) {
if (_parent == _root) {
if (Key.isDown(17)) {
_rotation = (_rotation + 90);
}
startDrag (this);
} else {
if (Key.isDown(17)) {
_parent._rotation = _parent._rotation + 90;
}
startDrag (_parent);
}
}
on (release, releaseOutside) {
if (Number(getTimer() - lastClick) < 300) {
if (_parent == _root) {
_rotation = (_rotation + 90);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
_parent._rotation = _parent._rotation + 90;
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
stopDrag();
} else {
lastClick = getTimer();
stopDrag();
if (_parent == _root) {
master.controllaCollegati(this);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
master.controllaCollegati(_parent);
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
}
}
Symbol 223 Button
on (press) {
if (_parent == _root) {
if (Key.isDown(17)) {
_rotation = (_rotation + 90);
}
startDrag (this);
} else {
if (Key.isDown(17)) {
_parent._rotation = _parent._rotation + 90;
}
startDrag (_parent);
}
}
on (release, releaseOutside) {
if (Number(getTimer() - lastClick) < 300) {
if (_parent == _root) {
_rotation = (_rotation + 90);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
_parent._rotation = _parent._rotation + 90;
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
stopDrag();
} else {
lastClick = getTimer();
stopDrag();
if (_parent == _root) {
master.controllaCollegati(this);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
master.controllaCollegati(_parent);
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
}
}
Symbol 226 Button
on (press) {
if (_parent == _root) {
if (Key.isDown(17)) {
_rotation = (_rotation + 90);
}
startDrag (this);
} else {
if (Key.isDown(17)) {
_parent._rotation = _parent._rotation + 90;
}
startDrag (_parent);
}
}
on (release, releaseOutside) {
if (Number(getTimer() - lastClick) < 300) {
if (_parent == _root) {
_rotation = (_rotation + 90);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
_parent._rotation = _parent._rotation + 90;
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
stopDrag();
} else {
lastClick = getTimer();
stopDrag();
if (_parent == _root) {
master.controllaCollegati(this);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
master.controllaCollegati(_parent);
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
}
}
Symbol 229 Button
on (press) {
if (_parent == _root) {
if (Key.isDown(17)) {
_rotation = (_rotation + 90);
}
startDrag (this);
} else {
if (Key.isDown(17)) {
_parent._rotation = _parent._rotation + 90;
}
startDrag (_parent);
}
}
on (release, releaseOutside) {
if (Number(getTimer() - lastClick) < 300) {
if (_parent == _root) {
_rotation = (_rotation + 90);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
_parent._rotation = _parent._rotation + 90;
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
stopDrag();
} else {
lastClick = getTimer();
stopDrag();
if (_parent == _root) {
master.controllaCollegati(this);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
master.controllaCollegati(_parent);
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
}
}
Symbol 232 Button
on (press) {
if (_parent == _root) {
if (Key.isDown(17)) {
_rotation = (_rotation + 90);
}
startDrag (this);
} else {
if (Key.isDown(17)) {
_parent._rotation = _parent._rotation + 90;
}
startDrag (_parent);
}
}
on (release, releaseOutside) {
if (Number(getTimer() - lastClick) < 300) {
if (_parent == _root) {
_rotation = (_rotation + 90);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
_parent._rotation = _parent._rotation + 90;
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
stopDrag();
} else {
lastClick = getTimer();
stopDrag();
if (_parent == _root) {
master.controllaCollegati(this);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
master.controllaCollegati(_parent);
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
}
}
Symbol 235 Button
on (press) {
if (_parent == _root) {
if (Key.isDown(17)) {
_rotation = (_rotation + 90);
}
startDrag (this);
} else {
if (Key.isDown(17)) {
_parent._rotation = _parent._rotation + 90;
}
startDrag (_parent);
}
}
on (release, releaseOutside) {
if (Number(getTimer() - lastClick) < 300) {
if (_parent == _root) {
_rotation = (_rotation + 90);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
_parent._rotation = _parent._rotation + 90;
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
stopDrag();
} else {
lastClick = getTimer();
stopDrag();
if (_parent == _root) {
master.controllaCollegati(this);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
master.controllaCollegati(_parent);
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
}
}
Symbol 238 Button
on (press) {
if (_parent == _root) {
if (Key.isDown(17)) {
_rotation = (_rotation + 90);
}
startDrag (this);
} else {
if (Key.isDown(17)) {
_parent._rotation = _parent._rotation + 90;
}
startDrag (_parent);
}
}
on (release, releaseOutside) {
if (Number(getTimer() - lastClick) < 300) {
if (_parent == _root) {
_rotation = (_rotation + 90);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
_parent._rotation = _parent._rotation + 90;
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
stopDrag();
} else {
lastClick = getTimer();
stopDrag();
if (_parent == _root) {
master.controllaCollegati(this);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
master.controllaCollegati(_parent);
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
}
}
Symbol 241 Button
on (press) {
if (_parent == _root) {
if (Key.isDown(17)) {
_rotation = (_rotation + 90);
}
startDrag (this);
} else {
if (Key.isDown(17)) {
_parent._rotation = _parent._rotation + 90;
}
startDrag (_parent);
}
}
on (release, releaseOutside) {
if (Number(getTimer() - lastClick) < 300) {
if (_parent == _root) {
_rotation = (_rotation + 90);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
_parent._rotation = _parent._rotation + 90;
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
stopDrag();
} else {
lastClick = getTimer();
stopDrag();
if (_parent == _root) {
master.controllaCollegati(this);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
master.controllaCollegati(_parent);
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
}
}
Symbol 244 Button
on (press) {
if (_parent == _root) {
if (Key.isDown(17)) {
_rotation = (_rotation + 90);
}
startDrag (this);
} else {
if (Key.isDown(17)) {
_parent._rotation = _parent._rotation + 90;
}
startDrag (_parent);
}
}
on (release, releaseOutside) {
if (Number(getTimer() - lastClick) < 300) {
if (_parent == _root) {
_rotation = (_rotation + 90);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
_parent._rotation = _parent._rotation + 90;
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
stopDrag();
} else {
lastClick = getTimer();
stopDrag();
if (_parent == _root) {
master.controllaCollegati(this);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
master.controllaCollegati(_parent);
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
}
}
Symbol 247 Button
on (press) {
if (_parent == _root) {
if (Key.isDown(17)) {
_rotation = (_rotation + 90);
}
startDrag (this);
} else {
if (Key.isDown(17)) {
_parent._rotation = _parent._rotation + 90;
}
startDrag (_parent);
}
}
on (release, releaseOutside) {
if (Number(getTimer() - lastClick) < 300) {
if (_parent == _root) {
_rotation = (_rotation + 90);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
_parent._rotation = _parent._rotation + 90;
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
stopDrag();
} else {
lastClick = getTimer();
stopDrag();
if (_parent == _root) {
master.controllaCollegati(this);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
master.controllaCollegati(_parent);
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
}
}
Symbol 250 Button
on (press) {
if (_parent == _root) {
if (Key.isDown(17)) {
_rotation = (_rotation + 90);
}
startDrag (this);
} else {
if (Key.isDown(17)) {
_parent._rotation = _parent._rotation + 90;
}
startDrag (_parent);
}
}
on (release, releaseOutside) {
if (Number(getTimer() - lastClick) < 300) {
if (_parent == _root) {
_rotation = (_rotation + 90);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
_parent._rotation = _parent._rotation + 90;
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
stopDrag();
} else {
lastClick = getTimer();
stopDrag();
if (_parent == _root) {
master.controllaCollegati(this);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
master.controllaCollegati(_parent);
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
}
}
Symbol 253 Button
on (press) {
if (_parent == _root) {
if (Key.isDown(17)) {
_rotation = (_rotation + 90);
}
startDrag (this);
} else {
if (Key.isDown(17)) {
_parent._rotation = _parent._rotation + 90;
}
startDrag (_parent);
}
}
on (release, releaseOutside) {
if (Number(getTimer() - lastClick) < 300) {
if (_parent == _root) {
_rotation = (_rotation + 90);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
_parent._rotation = _parent._rotation + 90;
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
stopDrag();
} else {
lastClick = getTimer();
stopDrag();
if (_parent == _root) {
master.controllaCollegati(this);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
master.controllaCollegati(_parent);
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
}
}
Symbol 256 Button
on (press) {
if (_parent == _root) {
if (Key.isDown(17)) {
_rotation = (_rotation + 90);
}
startDrag (this);
} else {
if (Key.isDown(17)) {
_parent._rotation = _parent._rotation + 90;
}
startDrag (_parent);
}
}
on (release, releaseOutside) {
if (Number(getTimer() - lastClick) < 300) {
if (_parent == _root) {
_rotation = (_rotation + 90);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
_parent._rotation = _parent._rotation + 90;
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
stopDrag();
} else {
lastClick = getTimer();
stopDrag();
if (_parent == _root) {
master.controllaCollegati(this);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
master.controllaCollegati(_parent);
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
}
}
Symbol 259 Button
on (press) {
if (_parent == _root) {
if (Key.isDown(17)) {
_rotation = (_rotation + 90);
}
startDrag (this);
} else {
if (Key.isDown(17)) {
_parent._rotation = _parent._rotation + 90;
}
startDrag (_parent);
}
}
on (release, releaseOutside) {
if (Number(getTimer() - lastClick) < 300) {
if (_parent == _root) {
_rotation = (_rotation + 90);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
_parent._rotation = _parent._rotation + 90;
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
stopDrag();
} else {
lastClick = getTimer();
stopDrag();
if (_parent == _root) {
master.controllaCollegati(this);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
master.controllaCollegati(_parent);
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
}
}
Symbol 262 Button
on (press) {
if (_parent == _root) {
if (Key.isDown(17)) {
_rotation = (_rotation + 90);
}
startDrag (this);
} else {
if (Key.isDown(17)) {
_parent._rotation = _parent._rotation + 90;
}
startDrag (_parent);
}
}
on (release, releaseOutside) {
if (Number(getTimer() - lastClick) < 300) {
if (_parent == _root) {
_rotation = (_rotation + 90);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
_parent._rotation = _parent._rotation + 90;
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
stopDrag();
} else {
lastClick = getTimer();
stopDrag();
if (_parent == _root) {
master.controllaCollegati(this);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
master.controllaCollegati(_parent);
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
}
}
Symbol 265 Button
on (press) {
if (_parent == _root) {
if (Key.isDown(17)) {
_rotation = (_rotation + 90);
}
startDrag (this);
} else {
if (Key.isDown(17)) {
_parent._rotation = _parent._rotation + 90;
}
startDrag (_parent);
}
}
on (release, releaseOutside) {
if (Number(getTimer() - lastClick) < 300) {
if (_parent == _root) {
_rotation = (_rotation + 90);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
_parent._rotation = _parent._rotation + 90;
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
stopDrag();
} else {
lastClick = getTimer();
stopDrag();
if (_parent == _root) {
master.controllaCollegati(this);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
master.controllaCollegati(_parent);
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
}
}
Symbol 268 Button
on (press) {
if (_parent == _root) {
if (Key.isDown(17)) {
_rotation = (_rotation + 90);
}
startDrag (this);
} else {
if (Key.isDown(17)) {
_parent._rotation = _parent._rotation + 90;
}
startDrag (_parent);
}
}
on (release, releaseOutside) {
if (Number(getTimer() - lastClick) < 300) {
if (_parent == _root) {
_rotation = (_rotation + 90);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
_parent._rotation = _parent._rotation + 90;
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
stopDrag();
} else {
lastClick = getTimer();
stopDrag();
if (_parent == _root) {
master.controllaCollegati(this);
if ((_root.contafinale == (_root.numPiece - 1)) && (this._rotation == 0)) {
this._x = this.giustaX;
this._y = this.giustaY;
_root.gotoAndStop("label_gameover");
}
} else {
master.controllaCollegati(_parent);
if ((_root.contafinale == (_root.numPiece - 1)) && (_parent._rotation == 0)) {
_parent._x = _parent.giustaX;
_parent._y = _parent.giustaY;
_root.gotoAndStop("label_gameover");
}
}
}
}
Symbol 276 MovieClip [gameover] Frame 1
totalScore = _root.score + (_root.timeScore * 150);
_root.final = totalScore;
if (_root.compareScores(totalScore)) {
gotoAndStop (20);
}
Symbol 276 MovieClip [gameover] Frame 10
messageScore = ((messageScore + "Score: ") + _root.score) + newline;
messageScore = ((((messageScore + "Time Bonus: 150 x ") + _root.timeScore) + " = ") + (150 * _root.timeScore)) + "\n\n";
messageScore = (messageScore + "Total Score: ") + totalScore;
stop();
Symbol 276 MovieClip [gameover] Frame 20
messageScore = ((messageScore + "Games Score: ") + _root.score) + newline;
messageScore = ((((messageScore + "Time Bonus: 150 x ") + _root.timeScore) + " = ") + (150 * _root.timeScore)) + "\n\n";
messageScore = (messageScore + "Total Score: ") + totalScore;
stop();
Symbol 276 MovieClip [gameover] Frame 30
stop();
_root.updateScores(nick, totalScore);
var i = 0;
while (i < 12) {
rank = rank + ((((((i + 1) + " ) ") + _root.array_scores[i][0]) + " - ") + _root.array_scores[i][1]) + newline);
i++;
}
Symbol 287 MovieClip Frame 120
_root.gotoAndStop("loader");
Symbol 326 Button
on (release) {
levelDiff = 3;
nextFrame();
}
Symbol 330 Button
on (release) {
levelDiff = 3;
nextFrame();
}
Symbol 338 Button
on (release) {
getURL ("http://www.ultimatearcade.com/", "_blank");
}
Symbol 342 Button
on (release) {
getURL ("http://www.ultimatearcade.com/downloads", "_blank");
}
Symbol 368 Button
on (release) {
gotoAndStop (2);
}
Symbol 369 Button
on (release) {
gotoAndStop (1);
}
Symbol 370 MovieClip Frame 1
fx = new Sound();
fx.attachSound("fx");
fx.start(1, 999);
fx.setVolume(80);
stop();
Symbol 370 MovieClip Frame 2
fx.stop();
stop();
Symbol 377 Button
on (release) {
_root.fx.stop();
_root.gotoAndPlay("good");
}
Symbol 379 MovieClip Frame 1
stop();