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 (5);
}
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 (6);
}
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 = 680000 /* 0x0A6040 */;
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 342 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 6 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 9 Button
on (press) {
startDrag (_parent);
}
on (release) {
stopDrag();
}
Symbol 14 Button
on (release) {
removeMovieClip(_parent);
}
Instance of Symbol 4 MovieClip "zoom" in Symbol 16 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 18 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 20 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 23 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 26 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 29 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 32 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 35 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 38 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 41 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 45 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 48 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 51 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 54 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 57 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 60 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 63 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 66 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 69 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 72 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 75 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 78 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 81 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 84 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 87 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 90 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 93 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 96 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 99 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 102 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 105 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 108 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 111 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 114 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 117 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 120 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 123 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 126 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 129 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 132 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 135 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 138 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 141 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 144 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 147 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 150 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 153 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 156 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 159 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 162 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 165 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 168 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 171 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 174 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 177 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 180 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 183 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 186 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 189 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 192 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 195 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 198 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 201 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 204 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 207 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 210 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 213 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 216 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 219 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 222 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 225 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 228 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 231 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 234 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 237 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 240 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 243 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 246 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 249 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 252 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 255 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 258 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 261 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 264 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 267 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 275 MovieClip [gameover] Frame 1
totalScore = _root.score + (_root.timeScore * 150);
_root.final = totalScore;
if (_root.compareScores(totalScore)) {
gotoAndStop (20);
}
Symbol 275 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 275 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 275 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 299 MovieClip Frame 112
_root.gotoAndPlay("loader");
Symbol 326 Button
on (release) {
levelDiff = 2;
nextFrame();
}
Symbol 334 Button
on (release) {
getURL ("http://www.ultimatearcade.com/", "_blank");
}
Symbol 338 Button
on (release) {
getURL ("http://www.ultimatearcade.com/downloads/", "_blank");
}
Symbol 364 Button
on (release) {
_root.gotoAndPlay("loader");
}
Symbol 366 MovieClip Frame 12
stop();