Frame 1
totali = _root.getBytesTotal();
caricati = _root.getBytesLoaded();
rate = (100 / totali) * caricati;
_root.preloader.barra._yscale = rate;
if (countAdd == undefined) {
myVars = new LoadVars();
myVars.SendAndLoad("http://www.naive.it/counter/count.php?key=pumpkin", myVars, "POST");
countAdd = true;
}
Instance of Symbol 18 MovieClip "musicbox" in Frame 1
onClipEvent (load) {
function fadeAway() {
fading = true;
curr = 100;
}
started = false;
}
onClipEvent (enterFrame) {
if (fading == true) {
rate = 1;
curr = curr - rate;
_root.bgm01.setVolume(curr);
if (curr <= 0) {
_root.bgm01.stop();
fading = false;
}
}
}
Frame 2
if (rate >= 99) {
_root.gotoAndPlay("home");
} else {
gotoAndPlay (1);
}
Frame 3
if (loaded == 100) {
_root.play();
} else {
_root.gotoAndPlay(2);
}
Frame 4
_root.started = false;
Frame 19
stop();
Frame 35
stop();
Frame 36
_root.level = 1;
_root.reallevel = 1;
_root.score = 0;
_root.lives = 3;
_root.offset = 0;
Frame 37
if (started == false) {
bgm01 = new Sound();
bgm01.attachSound("bgm");
bgm01.setVolume(100);
bgm01.start(0, 999);
started = true;
}
Instance of Symbol 95 MovieClip "sfondi" in Frame 37
onClipEvent (load) {
this.gotoAndPlay(_root.level);
}
onClipEvent (enterFrame) {
_root.var4 = _root.offset;
}
Instance of Symbol 98 MovieClip "bonusText" in Frame 37
onClipEvent (load) {
function launch(x, y, score) {
trace((("lanciato a " + x) + ":") + y);
_root.sfondi.ordeLIV1.bonusText._x = x;
_root.sfondi.ordeLIV1.bonusText._y = y;
_root.sfondi.ordeLIV1.bonusText.bonus.text = score * 10;
_root.sfondi.ordeLIV1.play();
}
}
Instance of Symbol 104 MovieClip "bonusIcon" in Frame 37
onClipEvent (load) {
function scegliBonus() {
t = int(random(10) + 1);
if ((t >= 0) && (t < 4)) {
type = 1;
}
if ((t >= 4) && (t < 7)) {
type = 2;
}
if ((t >= 7) && (t < 10)) {
type = 3;
}
if (t >= 10) {
type = 4;
}
this.calcolato = false;
this.gotoAndStop(type);
}
this.attivato = true;
}
onClipEvent (enterFrame) {
if (this.attivato == true) {
_x = (_x - 7);
_y = (_y - (Math.sin(_x) * 4));
if (this.hitTest(_root.strega)) {
this._x = -1000;
this.attivato = false;
if (this.calcolato == false) {
switch (type) {
case 1 :
_root.strega.showbonus.type = "+" + (100 * _root.level);
_root.score = _root.score + (100 * _root.level);
break;
case 2 :
if (_root.shield == false) {
_root.strega.showbonus.type = "Shield";
_root.strega.scudo.play();
}
break;
case 3 :
_root.strega.showbonus.type = "Powerup";
_root.powerUp = true;
break;
case 4 :
_root.strega.showbonus.type = "Life";
_root.lives = _root.lives + 1;
}
_root.strega.showbonus.play();
this.calcolato = true;
}
}
if (this._x < -1000) {
this.attivato = false;
}
}
}
Instance of Symbol 106 MovieClip "ruler" in Frame 37
onClipEvent (load) {
this.attivato = false;
xstep = 3;
this._visible = false;
xFact = (yFact = 5);
}
onClipEvent (enterFrame) {
if ((_root.strega.viva == true) && (this.attivato == false)) {
this.startDrag(true);
this.attivato = true;
}
if (_root.strega.viva == false) {
ani_state = -5;
this.attivato = false;
}
if (this.attivato == true) {
stepX = (this._x - _root.strega._x) / XFact;
stepY = (this._y - _root.strega._y) / YFact;
if (_root.strega._x < this._x) {
_root.strega._x = _root.strega._x + stepx;
}
if (_root.strega._x > this._x) {
_root.strega._x = _root.strega._x + stepx;
}
if (_root.strega._y < this._y) {
_root.strega._y = _root.strega._y + stepy;
}
if (_root.strega._y > this._y) {
_root.strega._y = _root.strega._y + stepy;
}
}
if (_root.strega.viva == true) {
if (this._x > (_root.strega._x + 20)) {
ani_state = 1;
}
if (this._x < (_root.strega._x - 20)) {
ani_state = -1;
}
if ((this._x < (_root.strega._x + 20)) && (this._x > (_root.strega._x - 20))) {
ani_state = 0;
}
}
if ((ani_state != old_ani_state) || (old_ani_state == undefined)) {
switch (ani_state) {
case 1 :
_root.strega.gotoAndPlay("right");
break;
case -1 :
_root.strega.gotoAndPlay("left");
break;
case 0 :
if (_root.strega.mid_animation == true) {
_root.strega.play();
} else {
_root.strega.gotoAndPlay("still");
}
}
old_ani_state = ani_state;
}
if (_root.strega._x > _root.maxX) {
_root.strega._x = _root.maxX;
}
if (_root.strega._x < _root.minX) {
_root.strega._x = _root.minX;
}
if (_root.strega._y > _root.maxY) {
_root.strega._y = _root.maxY;
}
if (_root.strega._y < _root.minY) {
_root.strega._y = _root.minY;
}
}
Instance of Symbol 109 MovieClip "littlestar" in Frame 37
onClipEvent (enterFrame) {
this._x = this._x - 7;
if (this._x < 10) {
this.removeMovieClip();
}
}
Instance of Symbol 125 MovieClip "sparo" in Frame 37
onClipEvent (load) {
eliminato = false;
}
onClipEvent (enterFrame) {
this._x = this._x + 12;
if ((this._x > (_root.maxX + 100)) && (eliminato == false)) {
eliminato = true;
this.removeMovieClip();
}
}
Instance of Symbol 132 MovieClip in Frame 37
onClipEvent (enterFrame) {
if (_root.lives <= 3) {
this.gotoAndPlay(_root.lives + 1);
} else {
this.gotoAndPlay(5);
}
if (_root.lives <= 0) {
_root.gotoAndStop("gameOver");
}
}
Frame 55
stop();
Instance of Symbol 326 MovieClip in Frame 55
onClipEvent (load) {
this.gotoAndPlay(_root.level);
this["ordeLIV" + _root.level].gotoAndPlay(_root.offset);
}
Instance of Symbol 162 MovieClip "strega" in Frame 55
onClipEvent (load) {
function leaveStar() {
_root.starnum++;
duplicateMovieClip ("_root.littlestar", "stella" + _root.starnum, _root.starnum + 1000);
_root["stella" + _root.starnum]._x = _root.strega._x - 37;
_root["stella" + _root.starnum]._y = (_root.strega._y + 7) + int(random(_root.varstella * 2) - _root.varstella);
}
function shoot(level) {
_root.totspari = _root.totspari + 1;
if (_root.totSpari > 5) {
_root.totSpari = 1;
}
pos = _root.totSpari % 5;
duplicateMovieClip (_root.sparo, "sparo" + _root.totspari, 16384 + pos);
setProperty("_root.sparo" + _root.totspari, _x , _root.strega._x + 50);
setProperty("_root.sparo" + _root.totspari, _y , _root.strega._y + 7);
if (_root.powerup == true) {
type = level + 3;
} else {
type = level;
}
_root["sparo" + _root.totspari].gotoAndPlay(type);
_root["sparo" + _root.totspari].type = type;
}
_root.bonusRate = 4;
_root.maxX = 580;
_root.maxY = 250;
_root.minX = 80;
_root.minY = 70;
_root.thrustFactor = 5;
_root.thrustYfactor = 1;
_root.powerup = false;
_root.shield = false;
_root.varstella = 6;
_root.shootType = 1;
_root.totspari = 0;
_root.maxShots = 5;
_root.strega.viva = true;
lastTime = getTimer();
ordesparite = false;
}
onClipEvent (enterFrame) {
if (_root.shotCharging == true) {
partTime = Math.round((getTimer() - _root.shotStart) / 1000);
if (partTime > 3) {
partTime = 3;
}
if ((partTime != oldPartTime) || (oldPartTime == undefined)) {
switch (partTime) {
case 2 :
this.carica._visible = true;
this.carica.gotoAndPlay("uno");
break;
case 3 :
this.carica._visible = true;
this.carica.gotoAndPlay("due");
}
oldPartTime = partTime;
}
}
t = t + 0.05;
_root.spazioPercorso = Math.floor(t);
if (_root.shield == true) {
this.shield._visible = true;
}
if ((this.viva == false) && (stomorendo == false)) {
this.gotoAndPlay("die");
}
if (_root.strega._x > _root.maxX) {
_root.strega._x = _root.maxX;
}
if (_root.strega._x < _root.minX) {
_root.strega._x = _root.minX;
}
if (_root.strega._y > _root.maxY) {
_root.strega._y = _root.maxY;
}
if (_root.strega._y < _root.minY) {
_root.strega._y = _root.minY;
}
if ((getTimer() - lastTime) > 120) {
leaveStar();
lastTime = getTimer();
}
Mouse.addListener(_root.strega);
_root.strega.onMouseDown = function () {
_root.shotCharging = true;
_root.shotStart = getTimer();
};
_root.strega.onMouseUp = function () {
_root.shotCharging = false;
_root.shotDuration = Math.round((getTimer() - _root.shotStart) / 1000);
if (_root.shotDuration > 3) {
_root.shotDuration = 3;
}
switch (_root.shotDuration) {
case 0 :
case 1 :
type = 1;
break;
case 2 :
type = 2;
break;
case 3 :
type = 3;
}
if ((getTimer() > (oldshot + 300)) || (oldshot == undefined)) {
shoot(type);
oldshot = getTimer();
}
};
}
Frame 56
stop();
Instance of Symbol 95 MovieClip "sfondi" in Frame 56
onClipEvent (load) {
this.gotoAndPlay(_root.level);
}
onClipEvent (enterFrame) {
_root.var4 = _root.offset;
}
Instance of Symbol 106 MovieClip "ruler" in Frame 56
onClipEvent (load) {
this.attivato = false;
xstep = 3;
this._visible = false;
xFact = (yFact = 5);
}
onClipEvent (enterFrame) {
if ((_root.strega.viva == true) && (this.attivato == false)) {
this.startDrag(true);
this.attivato = true;
}
if (_root.strega.viva == false) {
ani_state = -5;
this.attivato = false;
}
if (this.attivato == true) {
stepX = (this._x - _root.strega._x) / XFact;
stepY = (this._y - _root.strega._y) / YFact;
if (_root.strega._x < this._x) {
_root.strega._x = _root.strega._x + stepx;
}
if (_root.strega._x > this._x) {
_root.strega._x = _root.strega._x + stepx;
}
if (_root.strega._y < this._y) {
_root.strega._y = _root.strega._y + stepy;
}
if (_root.strega._y > this._y) {
_root.strega._y = _root.strega._y + stepy;
}
}
if (_root.strega.viva == true) {
if (this._x > (_root.strega._x + 20)) {
ani_state = 1;
}
if (this._x < (_root.strega._x - 20)) {
ani_state = -1;
}
if ((this._x < (_root.strega._x + 20)) && (this._x > (_root.strega._x - 20))) {
ani_state = 0;
}
}
if ((ani_state != old_ani_state) || (old_ani_state == undefined)) {
switch (ani_state) {
case 1 :
_root.strega.gotoAndPlay("right");
break;
case -1 :
_root.strega.gotoAndPlay("left");
break;
case 0 :
if (_root.strega.mid_animation == true) {
_root.strega.play();
} else {
_root.strega.gotoAndPlay("still");
}
}
old_ani_state = ani_state;
}
if (_root.strega._x > _root.maxX) {
_root.strega._x = _root.maxX;
}
if (_root.strega._x < _root.minX) {
_root.strega._x = _root.minX;
}
if (_root.strega._y > _root.maxY) {
_root.strega._y = _root.maxY;
}
if (_root.strega._y < _root.minY) {
_root.strega._y = _root.minY;
}
}
Instance of Symbol 109 MovieClip "littlestar" in Frame 56
onClipEvent (enterFrame) {
this._x = this._x - 7;
if (this._x < 10) {
this.removeMovieClip();
}
}
Instance of Symbol 125 MovieClip "sparo" in Frame 56
onClipEvent (load) {
eliminato = false;
}
onClipEvent (enterFrame) {
this._x = this._x + 12;
if ((this._x > (_root.maxX + 100)) && (eliminato == false)) {
eliminato = true;
this.removeMovieClip();
}
}
Instance of Symbol 132 MovieClip in Frame 56
onClipEvent (enterFrame) {
if (_root.lives <= 3) {
this.gotoAndPlay(_root.lives + 1);
} else {
this.gotoAndPlay(5);
}
if (_root.lives <= 0) {
_root.gotoAndStop("gameOver");
}
}
Frame 57
_root.musicbox.fadeAway();
stop();
Symbol 23 Button
on (release) {
getURL ("http://www.naive.it", "_blank");
}
Symbol 27 Button
on (release) {
_root.play();
}
Symbol 52 Button
on (release) {
_root.gotoAndPlay("prep");
}
Symbol 70 MovieClip Frame 483
gotoAndPlay (150);
Symbol 74 MovieClip Frame 483
gotoAndPlay (150);
Symbol 78 MovieClip Frame 1
gotoAndPlay (300);
Symbol 78 MovieClip Frame 553
gotoAndPlay (2);
Symbol 84 MovieClip Frame 1
gotoAndPlay (130);
Symbol 84 MovieClip Frame 182
gotoAndPlay (2);
Symbol 95 MovieClip Frame 1
stop();
Symbol 95 MovieClip Frame 2
stop();
Symbol 95 MovieClip Frame 3
stop();
Symbol 98 MovieClip Frame 1
this._visible = false;
stop();
Symbol 98 MovieClip Frame 2
tbaBonus = this.bonus.text;
_root.score = _root.score + Number(tbaBonus);
this._visible = true;
Symbol 104 MovieClip Frame 1
stop();
Symbol 104 MovieClip Frame 2
stop();
Symbol 104 MovieClip Frame 3
stop();
Symbol 104 MovieClip Frame 4
stop();
Symbol 109 MovieClip Frame 15
this.removeMovieClip();
Symbol 125 MovieClip Frame 1
stop();
Symbol 125 MovieClip Frame 2
stop();
Symbol 125 MovieClip Frame 3
stop();
Symbol 125 MovieClip Frame 4
stop();
Symbol 125 MovieClip Frame 5
stop();
Symbol 125 MovieClip Frame 6
stop();
Symbol 132 MovieClip Frame 1
stop();
Symbol 132 MovieClip Frame 2
stop();
Symbol 132 MovieClip Frame 3
stop();
Symbol 132 MovieClip Frame 4
stop();
Symbol 132 MovieClip Frame 5
stop();
Symbol 136 MovieClip Frame 1
_root.shield = false;
stop();
Symbol 136 MovieClip Frame 2
_root.shield = true;
Symbol 136 MovieClip Frame 15
stop();
Symbol 136 MovieClip Frame 30
this.gotoAndStop(1);
Symbol 141 MovieClip Frame 12
gotoAndPlay (1);
Symbol 141 MovieClip Frame 24
gotoAndPlay (13);
Symbol 143 MovieClip Frame 1
stop();
Symbol 143 MovieClip Frame 23
gotoAndPlay (1);
Symbol 162 MovieClip Frame 1
stomorendo = false;
stop();
Instance of Symbol 138 MovieClip "hotspot" in Symbol 162 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 141 MovieClip "carica" in Symbol 162 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if ((_root.shotCharging == false) && (this._visible == true)) {
this._visible = false;
}
}
Symbol 162 MovieClip Frame 6
mid_animation = true;
stop();
Symbol 162 MovieClip Frame 10
mid_animation = false;
gotoAndPlay (1);
Symbol 162 MovieClip Frame 16
mid_animation = true;
stop();
Symbol 162 MovieClip Frame 21
mid_animation = false;
gotoAndPlay (1);
Symbol 162 MovieClip Frame 22
stomorendo = true;
Symbol 162 MovieClip Frame 47
_root.lives = _root.lives - 1;
_root.gotoAndPlay("game");
stop();
Symbol 175 MovieClip Frame 34
gotoAndPlay (1);
Symbol 175 MovieClip Frame 35
this.esplosa = true;
Symbol 175 MovieClip Frame 48
this._visible = false;
this.stop();
Instance of Symbol 177 MovieClip "guida" in Symbol 178 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 178 MovieClip Frame 150
_root.completata = true;
stop();
Instance of Symbol 177 MovieClip "guida" in Symbol 179 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 179 MovieClip Frame 150
_root.completata = true;
stop();
Symbol 186 MovieClip Frame 10
gotoAndPlay (1);
Symbol 186 MovieClip Frame 24
this._visible = false;
this.stop();
Instance of Symbol 186 MovieClip "pipis1" in Symbol 187 MovieClip Frame 1
onClipEvent (load) {
step = 5;
limUP = 50;
limDown = 250;
}
onClipEvent (enterFrame) {
}
Instance of Symbol 186 MovieClip "pipis2" in Symbol 187 MovieClip Frame 1
onClipEvent (load) {
step = 5;
limUP = 50;
limDown = 250;
}
onClipEvent (enterFrame) {
}
Instance of Symbol 186 MovieClip "pipis3" in Symbol 187 MovieClip Frame 1
onClipEvent (load) {
step = 5;
limUP = 50;
limDown = 250;
}
onClipEvent (enterFrame) {
}
Instance of Symbol 186 MovieClip "pipis4" in Symbol 187 MovieClip Frame 1
onClipEvent (load) {
step = 5;
limUP = 50;
limDown = 250;
}
onClipEvent (enterFrame) {
}
Instance of Symbol 186 MovieClip "pipis5" in Symbol 187 MovieClip Frame 1
onClipEvent (load) {
step = 5;
limUP = 50;
limDown = 250;
}
onClipEvent (enterFrame) {
}
Instance of Symbol 177 MovieClip "guida" in Symbol 187 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 187 MovieClip Frame 180
_root.completata = true;
stop();
Instance of Symbol 186 MovieClip "pipis1" in Symbol 188 MovieClip Frame 1
onClipEvent (load) {
step = 5;
limUP = 50;
limDown = 250;
}
onClipEvent (enterFrame) {
}
Instance of Symbol 186 MovieClip "pipis2" in Symbol 188 MovieClip Frame 1
onClipEvent (load) {
step = 5;
limUP = 50;
limDown = 250;
}
onClipEvent (enterFrame) {
}
Instance of Symbol 186 MovieClip "pipis3" in Symbol 188 MovieClip Frame 1
onClipEvent (load) {
step = 5;
limUP = 50;
limDown = 250;
}
onClipEvent (enterFrame) {
}
Instance of Symbol 186 MovieClip "pipis4" in Symbol 188 MovieClip Frame 1
onClipEvent (load) {
step = 5;
limUP = 50;
limDown = 250;
}
onClipEvent (enterFrame) {
}
Instance of Symbol 186 MovieClip "pipis5" in Symbol 188 MovieClip Frame 1
onClipEvent (load) {
step = 5;
limUP = 50;
limDown = 250;
}
onClipEvent (enterFrame) {
}
Instance of Symbol 177 MovieClip "guida" in Symbol 188 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 188 MovieClip Frame 180
_root.completata = true;
stop();
Symbol 201 MovieClip Frame 28
gotoAndPlay (1);
Symbol 201 MovieClip Frame 42
this._visible = false;
Instance of Symbol 177 MovieClip "guida" in Symbol 202 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 202 MovieClip Frame 150
_root.completata = true;
stop();
Instance of Symbol 177 MovieClip "guida" in Symbol 203 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 203 MovieClip Frame 150
_root.completata = true;
stop();
Symbol 215 MovieClip Frame 40
gotoAndPlay (1);
Symbol 215 MovieClip Frame 54
this._visible = false;
Instance of Symbol 177 MovieClip "guida" in Symbol 216 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
raggio = 100;
currX = _x;
currY = _y;
}
Symbol 216 MovieClip Frame 150
_root.completata = true;
stop();
Instance of Symbol 177 MovieClip "guida" in Symbol 216 MovieClip Frame 150
onClipEvent (load) {
this._visible = true;
raggio = 100;
currX = _x;
currY = _y;
}
Symbol 217 MovieClip Frame 1
stop();
Instance of Symbol 175 MovieClip "boss5" in Symbol 217 MovieClip Frame 2
onClipEvent (enterFrame) {
if (this.hitTest(_root.strega.hotspot) && (_root.strega.viva == true)) {
if (_root.shield == true) {
_root.strega.scudo.gotoAndPlay("off");
} else {
_root.strega.viva = false;
}
}
}
Instance of Symbol 175 MovieClip "boss4" in Symbol 217 MovieClip Frame 24
onClipEvent (enterFrame) {
if (this.hitTest(_root.strega.hotspot) && (_root.strega.viva == true)) {
if (_root.shield == true) {
_root.strega.scudo.gotoAndPlay("off");
} else {
_root.strega.viva = false;
}
}
}
Instance of Symbol 175 MovieClip "boss5" in Symbol 217 MovieClip Frame 26
onClipEvent (enterFrame) {
if (this.hitTest(_root.strega.hotspot) && (_root.strega.viva == true)) {
if (_root.shield == true) {
_root.strega.scudo.gotoAndPlay("off");
} else {
_root.strega.viva = false;
}
}
}
Instance of Symbol 175 MovieClip "boss3" in Symbol 217 MovieClip Frame 46
onClipEvent (enterFrame) {
if (this.hitTest(_root.strega.hotspot) && (_root.strega.viva == true)) {
if (_root.shield == true) {
_root.strega.scudo.gotoAndPlay("off");
} else {
_root.strega.viva = false;
}
}
}
Instance of Symbol 175 MovieClip "boss2" in Symbol 217 MovieClip Frame 68
onClipEvent (enterFrame) {
if (this.hitTest(_root.strega.hotspot) && (_root.strega.viva == true)) {
if (_root.shield == true) {
_root.strega.scudo.gotoAndPlay("off");
} else {
_root.strega.viva = false;
}
}
}
Symbol 217 MovieClip Frame 93
gotoAndStop (1);
Symbol 228 MovieClip Frame 1
stop();
Symbol 228 MovieClip Frame 20
_parent._parent.ordapiccola.play();
Symbol 228 MovieClip Frame 51
_parent.target = _parent.target + 1;
gotoAndPlay (1);
Symbol 228 MovieClip Frame 65
stop();
Symbol 229 MovieClip Frame 1
stop();
Symbol 229 MovieClip Frame 2
_root.score = _root.score + 20;
Instance of Symbol 229 MovieClip "boss1" in Symbol 230 MovieClip Frame 1
onClipEvent (load) {
function pari(num) {
if (num == 0) {
return(true);
}
if ((num % 2) != 0) {
return(false);
}
return(true);
}
this.morto = false;
steps = new Array();
steps[0] = [-585, 0];
steps[1] = [-840, -90];
steps[2] = [-585, 0];
steps[3] = [-315, -90];
steps[4] = [-585, 0];
steps[5] = [-315, 90];
steps[6] = [-585, 0];
steps[7] = [-840, 90];
target = 0;
}
onClipEvent (enterFrame) {
if (this.morto == false) {
targX = steps[target][0];
targY = steps[target][1];
stepX = Math.floor(targX - this._x) / 20;
stepY = Math.floor(targY - this._y) / 10;
this._y = this._y + stepY;
this._x = this._x + stepX;
disX = Math.abs(Math.floor(targX - this._x));
disY = Math.abs(Math.floor(targY - this._y));
if ((disX < 2) && (disY < 2)) {
if (bouncing == undefined) {
bouncing = false;
}
if (!pari(target)) {
target = target + 1;
bouncing = false;
} else if (bouncing == false) {
this.boss.gotoAndPlay("bounce");
bouncing = true;
}
if (target >= 8) {
target = 0;
}
targX = steps[target][0];
targY = steps[target][1];
}
i = 0;
while (i < (_root.maxShots + 1)) {
if (this.hitTest(_root["sparo" + i]) && (energiatolta == false)) {
this.gotoAndPlay("hurt");
_root.energiaboss = _root.energiaboss - (2 * _root["sparo" + i].type);
energiatolta = true;
if ((_root.energiaboss <= 0) && (this.morto == false)) {
this.boss.gotoAndPlay("esplodi");
this.morto = true;
}
_root["sparo" + i].removeMovieClip();
} else {
energiatolta = false;
}
i++;
}
if (this.hitTest(_root.strega.hotspot) && (_root.strega.viva == true)) {
if (_root.shield == true) {
_root.strega.scudo.gotoAndPlay("off");
} else {
_root.strega.viva = false;
}
}
} else if (this.morto == true) {
if ((finelivello == undefined) || (finelivello == false)) {
_root.gotoAndPlay("end_level");
finelivello = true;
}
}
}
Symbol 232 MovieClip Frame 1
stop();
Symbol 234 MovieClip Frame 1
_root.ordaFinale = false;
this.bonus._visible = true;
Symbol 234 MovieClip Frame 2
_root.offset = 2;
stop();
Instance of Symbol 178 MovieClip in Symbol 234 MovieClip Frame 2
onClipEvent (load) {
ampiezza = 8;
nemici = 5;
type = "zucca";
punti = 10;
this.completata = false;
i = 1;
while (i <= nemici) {
this[type + i].preso = false;
i++;
}
this.presiorda = 0;
}
onClipEvent (enterFrame) {
if (this.completata == false) {
i = 1;
while (i <= nemici) {
if (i == 1) {
this[type + i]._x = guida._x + 20;
this[type + i]._y = guida._y;
} else {
tempX = this[type + (i - 1)]._x;
tempY = this[type + (i - 1)]._y;
this[type + i]._x = this[type + i]._x + ((tempX - this[type + i]._x) + 60);
this[type + i]._y = this[type + i]._y + ((TempY - this[type + i]._y) / 6);
}
i++;
}
i = 1;
while (i < _root.maxShots) {
if (this.hitTest(_root["sparo" + i])) {
n = 1;
while (n <= nemici) {
if (_root["sparo" + i].hitTest(this[type + n]) && (this[type + n].preso == false)) {
this[type + n].gotoAndPlay("esplodi");
this[type + n].preso = true;
this.presiorda = this.presiorda + 1;
if (this.presiorda >= nemici) {
bonus = new Object();
bonus.x = this[type + n]._x;
bonus.y = this[type + n]._y;
localToGlobal(bonus);
bonusX = bonus.x;
bonusY = bonus.y;
_root.bonusText._x = bonusX;
_root.bonusText._y = bonusY;
_root.bonusText.bonus.text = punti * 10;
_root.bonusText.play();
i = int(random(10));
if (i >= _root.bonusRate) {
_root.bonusIcon._x = bonusX;
_root.bonusIcon._y = bonusY;
_root.bonusIcon.scegliBonus();
_root.bonusIcon.attivato = true;
}
}
_root.score = _root.score + this.punti;
_root["sparo" + i].nemicicolpiti = _root["sparo" + i].nemicicolpiti + 1;
if ((_root["sparo" + i].nemicicolpiti == (_root["sparo" + i].type % 3)) && ((_root["sparo" + i].type % 3) > 0)) {
_root["sparo" + i].removeMovieClip();
}
}
n++;
}
}
i++;
}
n = 1;
while (n <= nemici) {
if ((this[type + n].hitTest(_root.strega.hotspot) && (this[type + n].preso == false)) && (_root.strega.viva == true)) {
if (_root.shield == true) {
_root.strega.scudo.gotoAndPlay("off");
} else {
_root.strega.viva = false;
}
}
n++;
}
} else {
unloadMovie (this);
}
}
Symbol 234 MovieClip Frame 3
stop();
Instance of Symbol 179 MovieClip "orda1" in Symbol 234 MovieClip Frame 3
onClipEvent (load) {
ampiezza = 8;
nemici = 5;
type = "zucca";
punti = 10;
this.completata = false;
i = 1;
while (i <= nemici) {
this[type + i].preso = false;
i++;
}
this.presiorda = 0;
}
onClipEvent (enterFrame) {
if (this.completata == false) {
i = 1;
while (i <= nemici) {
if (i == 1) {
this[type + i]._x = guida._x + 20;
this[type + i]._y = guida._y;
} else {
tempX = this[type + (i - 1)]._x;
tempY = this[type + (i - 1)]._y;
this[type + i]._x = this[type + i]._x + ((tempX - this[type + i]._x) + 60);
this[type + i]._y = this[type + i]._y + ((TempY - this[type + i]._y) / 6);
}
i++;
}
i = 1;
while (i < _root.maxShots) {
if (this.hitTest(_root["sparo" + i])) {
n = 1;
while (n <= nemici) {
if (_root["sparo" + i].hitTest(this[type + n]) && (this[type + n].preso == false)) {
this[type + n].gotoAndPlay("esplodi");
this[type + n].preso = true;
this.presiorda = this.presiorda + 1;
if (this.presiorda >= nemici) {
bonus = new Object();
bonus.x = this[type + n]._x;
bonus.y = this[type + n]._y;
localToGlobal(bonus);
bonusX = bonus.x;
bonusY = bonus.y;
_root.bonusText._x = bonusX;
_root.bonusText._y = bonusY;
_root.bonusText.bonus.text = punti * 10;
_root.bonusText.play();
i = int(random(10));
if (i >= _root.bonusRate) {
_root.bonusIcon._x = bonusX;
_root.bonusIcon._y = bonusY;
_root.bonusIcon.scegliBonus();
_root.bonusIcon.attivato = true;
}
}
_root.score = _root.score + this.punti;
_root["sparo" + i].nemicicolpiti = _root["sparo" + i].nemicicolpiti + 1;
if ((_root["sparo" + i].nemicicolpiti == (_root["sparo" + i].type % 3)) && ((_root["sparo" + i].type % 3) > 0)) {
_root["sparo" + i].removeMovieClip();
}
}
n++;
}
}
i++;
}
n = 1;
while (n <= nemici) {
if ((this[type + n].hitTest(_root.strega.hotspot) && (this[type + n].preso == false)) && (_root.strega.viva == true)) {
if (_root.shield == true) {
_root.strega.scudo.gotoAndPlay("off");
} else {
_root.strega.viva = false;
}
}
n++;
}
} else {
unloadMovie (this);
}
}
Symbol 234 MovieClip Frame 4
_root.offset = 4;
stop();
Instance of Symbol 187 MovieClip in Symbol 234 MovieClip Frame 4
onClipEvent (load) {
ampiezza = 8;
nemici = 5;
type = "pipis";
punti = 20;
this.completata = false;
i = 1;
while (i <= nemici) {
this[type + i].preso = false;
i++;
}
this.presiorda = 0;
}
onClipEvent (enterFrame) {
if (this.completata == false) {
i = 1;
while (i <= nemici) {
if (i == 1) {
this[type + i]._x = guida._x + 20;
this[type + i]._y = guida._y;
} else {
tempX = this[type + (i - 1)]._x;
tempY = this[type + (i - 1)]._y;
this[type + i]._x = this[type + i]._x + ((tempX - this[type + i]._x) + 60);
this[type + i]._y = this[type + i]._y + ((TempY - this[type + i]._y) / 6);
}
i++;
}
i = 1;
while (i < _root.maxShots) {
if (this.hitTest(_root["sparo" + i])) {
n = 1;
while (n <= nemici) {
if (_root["sparo" + i].hitTest(this[type + n]) && (this[type + n].preso == false)) {
this[type + n].gotoAndPlay("esplodi");
this[type + n].preso = true;
this.presiorda = this.presiorda + 1;
if (this.presiorda >= nemici) {
bonus = new Object();
bonus.x = this[type + n]._x;
bonus.y = this[type + n]._y;
localToGlobal(bonus);
bonusX = bonus.x;
bonusY = bonus.y;
_root.bonusText._x = bonusX;
_root.bonusText._y = bonusY;
_root.bonusText.bonus.text = punti * 10;
_root.bonusText.play();
i = int(random(10));
if (i >= _root.bonusRate) {
_root.bonusIcon._x = bonusX;
_root.bonusIcon._y = bonusY;
_root.bonusIcon.scegliBonus();
_root.bonusIcon.attivato = true;
}
}
_root.score = _root.score + this.punti;
_root["sparo" + i].nemicicolpiti = _root["sparo" + i].nemicicolpiti + 1;
if ((_root["sparo" + i].nemicicolpiti == (_root["sparo" + i].type % 3)) && ((_root["sparo" + i].type % 3) > 0)) {
_root["sparo" + i].removeMovieClip();
}
}
n++;
}
}
i++;
}
n = 1;
while (n <= nemici) {
if ((this[type + n].hitTest(_root.strega.hotspot) && (this[type + n].preso == false)) && (_root.strega.viva == true)) {
if (_root.shield == true) {
_root.strega.scudo.gotoAndPlay("off");
} else {
_root.strega.viva = false;
}
}
n++;
}
} else {
unloadMovie (this);
}
}
Symbol 234 MovieClip Frame 5
stop();
Instance of Symbol 188 MovieClip in Symbol 234 MovieClip Frame 5
onClipEvent (load) {
ampiezza = 8;
nemici = 5;
type = "pipis";
punti = 20;
this.completata = false;
i = 1;
while (i <= nemici) {
this[type + i].preso = false;
i++;
}
this.presiorda = 0;
}
onClipEvent (enterFrame) {
if (this.completata == false) {
i = 1;
while (i <= nemici) {
if (i == 1) {
this[type + i]._x = guida._x + 20;
this[type + i]._y = guida._y;
} else {
tempX = this[type + (i - 1)]._x;
tempY = this[type + (i - 1)]._y;
this[type + i]._x = this[type + i]._x + ((tempX - this[type + i]._x) + 60);
this[type + i]._y = this[type + i]._y + ((TempY - this[type + i]._y) / 6);
}
i++;
}
i = 1;
while (i < _root.maxShots) {
if (this.hitTest(_root["sparo" + i])) {
n = 1;
while (n <= nemici) {
if (_root["sparo" + i].hitTest(this[type + n]) && (this[type + n].preso == false)) {
this[type + n].gotoAndPlay("esplodi");
this[type + n].preso = true;
this.presiorda = this.presiorda + 1;
if (this.presiorda >= nemici) {
bonus = new Object();
bonus.x = this[type + n]._x;
bonus.y = this[type + n]._y;
localToGlobal(bonus);
bonusX = bonus.x;
bonusY = bonus.y;
_root.bonusText._x = bonusX;
_root.bonusText._y = bonusY;
_root.bonusText.bonus.text = punti * 10;
_root.bonusText.play();
i = int(random(10));
if (i >= _root.bonusRate) {
_root.bonusIcon._x = bonusX;
_root.bonusIcon._y = bonusY;
_root.bonusIcon.scegliBonus();
_root.bonusIcon.attivato = true;
}
}
_root.score = _root.score + this.punti;
_root["sparo" + i].nemicicolpiti = _root["sparo" + i].nemicicolpiti + 1;
if ((_root["sparo" + i].nemicicolpiti == (_root["sparo" + i].type % 3)) && ((_root["sparo" + i].type % 3) > 0)) {
_root["sparo" + i].removeMovieClip();
}
}
n++;
}
}
i++;
}
n = 1;
while (n <= nemici) {
if ((this[type + n].hitTest(_root.strega.hotspot) && (this[type + n].preso == false)) && (_root.strega.viva == true)) {
if (_root.shield == true) {
_root.strega.scudo.gotoAndPlay("off");
} else {
_root.strega.viva = false;
}
}
n++;
}
} else {
unloadMovie (this);
}
}
Symbol 234 MovieClip Frame 6
_root.offset = 6;
stop();
Instance of Symbol 201 MovieClip "teschio1" in Symbol 234 MovieClip Frame 6
onClipEvent (load) {
xRate = -5;
startX = this._x;
punti = 50;
preso = false;
giro = 1;
}
onClipEvent (enterFrame) {
this._x = this._x + xRate;
xRate = xRate + (xRate / 20);
if (this._x < -1000) {
this._x = startX;
giro = giro + 1;
if (giro > 20) {
_root.completata = true;
}
this._y = -141 + int(random(200));
xRate = -10;
this._visible = true;
this.preso = false;
}
if ((this.hitTest(_root.strega.hotspot) && (_root.strega.viva == true)) && (this.preso == false)) {
if (_root.shield == true) {
_root.strega.scudo.gotoAndPlay("off");
} else {
_root.strega.viva = false;
}
}
i = 1;
while (i < _root.maxShots) {
if (this.hitTest(_root["sparo" + i])) {
if (_root["sparo" + i].hitTest(this) && (this.preso == false)) {
this.gotoAndPlay("esplodi");
this.preso = true;
_root.score = _root.score + this.punti;
_root["sparo" + i].nemicicolpiti = _root["sparo" + i].nemicicolpiti + 1;
if ((_root["sparo" + i].nemicicolpiti == (_root["sparo" + i].type % 3)) && ((_root["sparo" + i].type % 3) > 0)) {
_root["sparo" + i].removeMovieClip();
}
}
}
i++;
}
}
Instance of Symbol 201 MovieClip "teschio2" in Symbol 234 MovieClip Frame 6
onClipEvent (load) {
xRate = -5;
startX = this._x;
punti = 50;
preso = false;
}
onClipEvent (enterFrame) {
this._x = this._x + xRate;
xRate = xRate + (xRate / 20);
if (this._x < -1000) {
this._x = startX;
this._y = -141 + int(random(200));
xRate = -10;
this._visible = true;
this.preso = false;
}
if ((this.hitTest(_root.strega.hotspot) && (_root.strega.viva == true)) && (this.preso == false)) {
if (_root.shield == true) {
_root.strega.scudo.gotoAndPlay("off");
} else {
_root.strega.viva = false;
}
}
i = 1;
while (i < _root.maxShots) {
if (this.hitTest(_root["sparo" + i])) {
if (_root["sparo" + i].hitTest(this) && (this.preso == false)) {
this.gotoAndPlay("esplodi");
this.preso = true;
_root.score = _root.score + this.punti;
_root["sparo" + i].nemicicolpiti = _root["sparo" + i].nemicicolpiti + 1;
if ((_root["sparo" + i].nemicicolpiti == (_root["sparo" + i].type % 3)) && ((_root["sparo" + i].type % 3) > 0)) {
_root["sparo" + i].removeMovieClip();
}
}
}
i++;
}
}
Symbol 234 MovieClip Frame 7
_root.offset = 7;
stop();
Instance of Symbol 202 MovieClip in Symbol 234 MovieClip Frame 7
onClipEvent (load) {
ampiezza = 8;
nemici = 5;
type = "zucca";
punti = 10;
this.completata = false;
i = 1;
while (i <= nemici) {
this[type + i].preso = false;
i++;
}
this.presiorda = 0;
}
onClipEvent (enterFrame) {
if (this.completata == false) {
i = 1;
while (i <= nemici) {
if (i == 1) {
this[type + i]._x = guida._x + 20;
this[type + i]._y = guida._y;
} else {
tempX = this[type + (i - 1)]._x;
tempY = this[type + (i - 1)]._y;
this[type + i]._x = this[type + i]._x + ((tempX - this[type + i]._x) + 60);
this[type + i]._y = this[type + i]._y + ((TempY - this[type + i]._y) / 6);
}
i++;
}
i = 1;
while (i < _root.maxShots) {
if (this.hitTest(_root["sparo" + i])) {
n = 1;
while (n <= nemici) {
if (_root["sparo" + i].hitTest(this[type + n]) && (this[type + n].preso == false)) {
this[type + n].gotoAndPlay("esplodi");
this[type + n].preso = true;
this.presiorda = this.presiorda + 1;
if (this.presiorda >= nemici) {
bonus = new Object();
bonus.x = this[type + n]._x;
bonus.y = this[type + n]._y;
localToGlobal(bonus);
bonusX = bonus.x;
bonusY = bonus.y;
_root.bonusText._x = bonusX;
_root.bonusText._y = bonusY;
_root.bonusText.bonus.text = punti * 10;
_root.bonusText.play();
i = int(random(10));
if (i >= _root.bonusRate) {
_root.bonusIcon._x = bonusX;
_root.bonusIcon._y = bonusY;
_root.bonusIcon.scegliBonus();
_root.bonusIcon.attivato = true;
}
}
_root.score = _root.score + this.punti;
_root["sparo" + i].nemicicolpiti = _root["sparo" + i].nemicicolpiti + 1;
if ((_root["sparo" + i].nemicicolpiti == (_root["sparo" + i].type % 3)) && ((_root["sparo" + i].type % 3) > 0)) {
_root["sparo" + i].removeMovieClip();
}
}
n++;
}
}
i++;
}
n = 1;
while (n <= nemici) {
if ((this[type + n].hitTest(_root.strega.hotspot) && (this[type + n].preso == false)) && (_root.strega.viva == true)) {
if (_root.shield == true) {
_root.strega.scudo.gotoAndPlay("off");
} else {
_root.strega.viva = false;
}
}
n++;
}
} else {
unloadMovie (this);
}
}
Symbol 234 MovieClip Frame 8
stop();
Instance of Symbol 203 MovieClip in Symbol 234 MovieClip Frame 8
onClipEvent (load) {
ampiezza = 8;
nemici = 5;
type = "zucca";
punti = 10;
this.completata = false;
i = 1;
while (i <= nemici) {
this[type + i].preso = false;
i++;
}
this.presiorda = 0;
}
onClipEvent (enterFrame) {
if (this.completata == false) {
i = 1;
while (i <= nemici) {
if (i == 1) {
this[type + i]._x = guida._x + 20;
this[type + i]._y = guida._y;
} else {
tempX = this[type + (i - 1)]._x;
tempY = this[type + (i - 1)]._y;
this[type + i]._x = this[type + i]._x + ((tempX - this[type + i]._x) + 60);
this[type + i]._y = this[type + i]._y + ((TempY - this[type + i]._y) / 6);
}
i++;
}
i = 1;
while (i < _root.maxShots) {
if (this.hitTest(_root["sparo" + i])) {
n = 1;
while (n <= nemici) {
if (_root["sparo" + i].hitTest(this[type + n]) && (this[type + n].preso == false)) {
this[type + n].gotoAndPlay("esplodi");
this[type + n].preso = true;
this.presiorda = this.presiorda + 1;
if (this.presiorda >= nemici) {
bonus = new Object();
bonus.x = this[type + n]._x;
bonus.y = this[type + n]._y;
localToGlobal(bonus);
bonusX = bonus.x;
bonusY = bonus.y;
_root.bonusText._x = bonusX;
_root.bonusText._y = bonusY;
_root.bonusText.bonus.text = punti * 10;
_root.bonusText.play();
i = int(random(10));
if (i >= _root.bonusRate) {
_root.bonusIcon._x = bonusX;
_root.bonusIcon._y = bonusY;
_root.bonusIcon.scegliBonus();
_root.bonusIcon.attivato = true;
}
}
_root.score = _root.score + this.punti;
_root["sparo" + i].nemicicolpiti = _root["sparo" + i].nemicicolpiti + 1;
if ((_root["sparo" + i].nemicicolpiti == (_root["sparo" + i].type % 3)) && ((_root["sparo" + i].type % 3) > 0)) {
_root["sparo" + i].removeMovieClip();
}
}
n++;
}
}
i++;
}
n = 1;
while (n <= nemici) {
if ((this[type + n].hitTest(_root.strega.hotspot) && (this[type + n].preso == false)) && (_root.strega.viva == true)) {
if (_root.shield == true) {
_root.strega.scudo.gotoAndPlay("off");
} else {
_root.strega.viva = false;
}
}
n++;
}
} else {
unloadMovie (this);
}
}
Symbol 234 MovieClip Frame 9
_root.offset = 9;
stop();
Instance of Symbol 216 MovieClip in Symbol 234 MovieClip Frame 9
onClipEvent (load) {
ampiezza = 8;
nemici = 5;
type = "ghost";
punti = 30;
this.completata = false;
i = 1;
while (i <= nemici) {
this[type + i].preso = false;
i++;
}
this.presiorda = 0;
dist = this.ghost1._x - this.guida._x;
}
onClipEvent (enterFrame) {
if (this.completata == false) {
this._x = this._x - (dist / 10);
i = 1;
while (i < _root.maxShots) {
if (this.hitTest(_root["sparo" + i])) {
n = 1;
while (n <= nemici) {
if (_root["sparo" + i].hitTest(this[type + n]) && (this[type + n].preso == false)) {
this[type + n].gotoAndPlay("esplodi");
this[type + n].preso = true;
this.presiorda = this.presiorda + 1;
if (this.presiorda >= nemici) {
bonus = new Object();
bonus.x = this[type + n]._x;
bonus.y = this[type + n]._y;
localToGlobal(bonus);
bonusX = bonus.x;
bonusY = bonus.y;
_root.bonusText._x = bonusX;
_root.bonusText._y = bonusY;
_root.bonusText.bonus.text = punti * 10;
_root.bonusText.play();
i = int(random(10));
if (i >= _root.bonusRate) {
_root.bonusIcon._x = bonusX;
_root.bonusIcon._y = bonusY;
_root.bonusIcon.scegliBonus();
_root.bonusIcon.attivato = true;
}
}
_root.score = _root.score + this.punti;
_root["sparo" + i].nemicicolpiti = _root["sparo" + i].nemicicolpiti + 1;
if ((_root["sparo" + i].nemicicolpiti == (_root["sparo" + i].type % 3)) && ((_root["sparo" + i].type % 3) > 0)) {
_root["sparo" + i].removeMovieClip();
}
}
n++;
}
}
i++;
}
n = 1;
while (n <= nemici) {
if ((this[type + n].hitTest(_root.strega.hotspot) && (this[type + n].preso == false)) && (_root.strega.viva == true)) {
if (_root.shield == true) {
_root.strega.scudo.gotoAndPlay("off");
} else {
_root.strega.viva = false;
}
}
n++;
}
} else {
unloadMovie (this);
}
}
Symbol 234 MovieClip Frame 10
_root.ordaFinale = true;
stop();
Instance of Symbol 232 MovieClip in Symbol 234 MovieClip Frame 10
onClipEvent (load) {
_root.energiaboss = 100;
}
onClipEvent (enterFrame) {
if (this._xscale != _root.energiaboss) {
this._xscale = this._xscale - 0.5;
}
if (_root.energiaboss <= 0) {
this._xscale = 0;
}
}
Symbol 241 MovieClip Frame 34
gotoAndPlay (1);
Symbol 241 MovieClip Frame 35
this.esplosa = true;
Symbol 241 MovieClip Frame 48
this._visible = false;
this.stop();
Instance of Symbol 177 MovieClip "guida" in Symbol 242 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 242 MovieClip Frame 133
_root.completata = true;
stop();
Instance of Symbol 177 MovieClip "guida" in Symbol 244 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 244 MovieClip Frame 134
_root.completata = true;
stop();
Symbol 248 MovieClip Frame 28
gotoAndPlay (1);
Symbol 248 MovieClip Frame 29
this.esplosa = true;
Symbol 248 MovieClip Frame 42
this._visible = false;
this.stop();
Instance of Symbol 177 MovieClip "guida" in Symbol 249 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 249 MovieClip Frame 129
_root.completata = true;
stop();
Instance of Symbol 177 MovieClip "guida" in Symbol 250 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 250 MovieClip Frame 128
_root.completata = true;
stop();
Instance of Symbol 177 MovieClip "guida" in Symbol 251 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 251 MovieClip Frame 139
_root.completata = true;
stop();
Symbol 263 MovieClip Frame 50
gotoAndPlay (1);
Symbol 263 MovieClip Frame 51
this.esplosa = true;
Symbol 263 MovieClip Frame 64
this._visible = false;
this.stop();
Instance of Symbol 177 MovieClip "guida" in Symbol 264 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 264 MovieClip Frame 120
_root.completata = true;
stop();
Instance of Symbol 177 MovieClip "guida" in Symbol 265 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 265 MovieClip Frame 120
_root.completata = true;
stop();
Symbol 276 MovieClip Frame 1
this._visible = true;
Symbol 276 MovieClip Frame 24
gotoAndPlay (1);
Symbol 276 MovieClip Frame 25
this.esplosa = true;
Symbol 276 MovieClip Frame 38
this._visible = false;
stop();
Symbol 277 MovieClip Frame 1
t1 = false;
t2 = false;
t3 = false;
t4 = false;
trace("ordapiccolastarted");
stop();
Symbol 277 MovieClip Frame 2
stop();
Instance of Symbol 276 MovieClip in Symbol 277 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_parent.t1 == false) {
strega = new object();
strega.x = _root.strega._x;
strega.y = _root.strega._y;
globalToLocal(strega);
xdest = (this._x - strega.x) / (-_parent.rate);
ydest = (this._y - strega.y) / (-_parent.rate);
_parent.t1 = true;
}
if ((this._x < -900) || (this._x > 500)) {
_parent.play();
} else {
this._x = this._x + xdest;
this._y = this._y + ydest;
}
if (this.hitTest(_root.strega.hotspot) && (_root.strega.viva == true)) {
if (_root.shield == true) {
_root.strega.scudo.gotoAndPlay("off");
} else {
_root.strega.viva = false;
}
}
}
Symbol 277 MovieClip Frame 3
stop();
Instance of Symbol 276 MovieClip in Symbol 277 MovieClip Frame 3
onClipEvent (enterFrame) {
if (_parent.t2 == false) {
strega = new object();
strega.x = _root.strega._x;
strega.y = _root.strega._y;
globalToLocal(strega);
xdest = (this._x - strega.x) / (-_parent.rate);
ydest = (this._y - strega.y) / (-_parent.rate);
_parent.t2 = true;
}
if ((this._x < -900) || (this._x > 500)) {
_parent.play();
} else {
this._x = this._x + xdest;
this._y = this._y + ydest;
}
if (this.hitTest(_root.strega.hotspot) && (_root.strega.viva == true)) {
if (_root.shield == true) {
_root.strega.scudo.gotoAndPlay("off");
} else {
_root.strega.viva = false;
}
}
}
Symbol 277 MovieClip Frame 4
stop();
Instance of Symbol 276 MovieClip in Symbol 277 MovieClip Frame 4
onClipEvent (enterFrame) {
if (_parent.t3 == false) {
strega = new object();
strega.x = _root.strega._x;
strega.y = _root.strega._y;
globalToLocal(strega);
xdest = (this._x - strega.x) / (-_parent.rate);
ydest = (this._y - strega.y) / (-_parent.rate);
_parent.t3 = true;
}
if ((this._x < -900) || (this._x > 500)) {
_parent.play();
} else {
this._x = this._x + xdest;
this._y = this._y + ydest;
}
if (this.hitTest(_root.strega.hotspot) && (_root.strega.viva == true)) {
if (_root.shield == true) {
_root.strega.scudo.gotoAndPlay("off");
} else {
_root.strega.viva = false;
}
}
}
Symbol 277 MovieClip Frame 5
stop();
Instance of Symbol 276 MovieClip in Symbol 277 MovieClip Frame 5
onClipEvent (enterFrame) {
if (_parent.t4 == false) {
strega = new object();
strega.x = _root.strega._x;
strega.y = _root.strega._y;
globalToLocal(strega);
xdest = (this._x - strega.x) / (-_parent.rate);
ydest = (this._y - strega.y) / (-_parent.rate);
_parent.t4 = true;
}
if ((this._x < -900) || (this._x > 500)) {
_parent.play();
} else {
this._x = this._x + xdest;
this._y = this._y + ydest;
}
if (this.hitTest(_root.strega.hotspot) && (_root.strega.viva == true)) {
if (_root.shield == true) {
_root.strega.scudo.gotoAndPlay("off");
} else {
_root.strega.viva = false;
}
}
}
Symbol 277 MovieClip Frame 6
_parent.flameboss.target = _parent.flameboss.target + 1;
gotoAndPlay (1);
Symbol 287 MovieClip Frame 20
gotoAndPlay (1);
Symbol 287 MovieClip Frame 28
_parent._parent.ordapiccola.gotoAndPlay(2);
Symbol 287 MovieClip Frame 35
gotoAndPlay (1);
Symbol 287 MovieClip Frame 49
stop();
Symbol 288 MovieClip Frame 1
stop();
Symbol 288 MovieClip Frame 15
gotoAndPlay (1);
Instance of Symbol 277 MovieClip "ordapiccola" in Symbol 289 MovieClip Frame 1
onClipEvent (load) {
rate = 20;
}
Instance of Symbol 288 MovieClip "flameboss" in Symbol 289 MovieClip Frame 1
onClipEvent (load) {
function pari(num) {
if (num == 0) {
return(true);
}
if ((num % 2) != 0) {
return(false);
}
return(true);
}
this.morto = false;
steps = new Array();
steps[0] = [-395, 0];
steps[1] = [-905, -69];
steps[2] = [-395, 0];
steps[3] = [-905, 61];
steps[4] = [-395, 0];
steps[5] = [-905, -69];
steps[6] = [-395, 0];
steps[7] = [-905, 61];
target = 0;
}
onClipEvent (enterFrame) {
if (this.morto == false) {
targX = steps[target][0];
targY = steps[target][1];
stepX = Math.floor(targX - this._x) / 20;
stepY = Math.floor(targY - this._y) / 10;
this._y = this._y + stepY;
this._x = this._x + stepX;
disX = Math.abs(Math.floor(targX - this._x));
disY = Math.abs(Math.floor(targY - this._y));
if ((disX < 2) && (disY < 2)) {
if (bouncing == undefined) {
bouncing = false;
}
if (!pari(target)) {
target = target + 1;
bouncing = false;
} else if (bouncing == false) {
this.boss.gotoAndPlay("spara");
_root.sfondi.ordeLIV2.boss.ordapiccola._x = this._x;
_root.sfondi.ordeLIV2.boss.ordapiccola._y = this._y;
bouncing = true;
}
if (target >= 8) {
target = 0;
}
targX = steps[target][0];
targY = steps[target][1];
}
i = 0;
while (i < (_root.maxShots + 1)) {
if (this.hitTest(_root["sparo" + i]) && (energiatolta == false)) {
this.gotoAndPlay("hurt");
_root.energiaboss = _root.energiaboss - (2 * _root["sparo" + i].type);
energiatolta = true;
if ((_root.energiaboss <= 0) && (this.morto == false)) {
this.boss.gotoAndPlay("esplodi");
this.morto = true;
}
_root["sparo" + i].removeMovieClip();
} else {
energiatolta = false;
}
i++;
}
if (this.hitTest(_root.strega.hotspot) && (_root.strega.viva == true)) {
if (_root.shield == true) {
_root.strega.scudo.gotoAndPlay("off");
} else {
_root.strega.viva = false;
}
}
} else if (this.morto == true) {
if ((finelivello == undefined) || (finelivello == false)) {
_root.gotoAndPlay("end_level");
finelivello = true;
}
}
}
Symbol 291 MovieClip Frame 1
_root.ordaFinale = false;
this.bonus._visible = true;
Symbol 291 MovieClip Frame 2
_root.offset = 2;
stop();
Instance of Symbol 242 MovieClip in Symbol 291 MovieClip Frame 2
onClipEvent (load) {
nemici = 5;
type = "zuccav";
punti = 10;
this.completata = false;
i = 1;
while (i <= nemici) {
this[type + i].preso = false;
i++;
}
this.presiorda = 0;
}
onClipEvent (enterFrame) {
if (this.completata == false) {
i = 1;
while (i <= nemici) {
if (i == 1) {
this[type + i]._x = guida._x + 20;
this[type + i]._y = guida._y;
} else {
tempX = this[type + (i - 1)]._x;
tempY = this[type + (i - 1)]._y;
this[type + i]._x = this[type + i]._x + ((tempX - this[type + i]._x) + 60);
this[type + i]._y = this[type + i]._y + ((TempY - this[type + i]._y) / 6);
}
i++;
}
i = 1;
while (i < _root.maxShots) {
if (this.hitTest(_root["sparo" + i])) {
n = 1;
while (n <= nemici) {
if (_root["sparo" + i].hitTest(this[type + n]) && (this[type + n].preso == false)) {
this[type + n].gotoAndPlay("esplodi");
this[type + n].preso = true;
this.presiorda = this.presiorda + 1;
if (this.presiorda >= nemici) {
bonus = new Object();
bonus.x = this[type + n]._x;
bonus.y = this[type + n]._y;
localToGlobal(bonus);
bonusX = bonus.x;
bonusY = bonus.y;
_root.bonusText._x = bonusX;
_root.bonusText._y = bonusY;
_root.bonusText.bonus.text = punti * 10;
_root.bonusText.play();
i = int(random(10));
if (i >= _root.bonusRate) {
_root.bonusIcon._x = bonusX;
_root.bonusIcon._y = bonusY;
_root.bonusIcon.scegliBonus();
_root.bonusIcon.attivato = true;
}
}
_root.score = _root.score + this.punti;
_root["sparo" + i].nemicicolpiti = _root["sparo" + i].nemicicolpiti + 1;
if ((_root["sparo" + i].nemicicolpiti == (_root["sparo" + i].type % 3)) && ((_root["sparo" + i].type % 3) > 0)) {
_root["sparo" + i].removeMovieClip();
}
}
n++;
}
}
i++;
}
n = 1;
while (n <= nemici) {
if ((this[type + n].hitTest(_root.strega.hotspot) && (this[type + n].preso == false)) && (_root.strega.viva == true)) {
if (_root.shield == true) {
_root.strega.scudo.gotoAndPlay("off");
} else {
_root.strega.viva = false;
}
}
n++;
}
} else {
unloadMovie (this);
}
}
Symbol 291 MovieClip Frame 3
stop();
Instance of Symbol 244 MovieClip "orda1" in Symbol 291 MovieClip Frame 3
onClipEvent (load) {
ampiezza = 8;
nemici = 5;
type = "zuccav";
punti = 10;
this.completata = false;
i = 1;
while (i <= nemici) {
this[type + i].preso = false;
i++;
}
this.presiorda = 0;
}
onClipEvent (enterFrame) {
if (this.completata == false) {
i = 1;
while (i <= nemici) {
if (i == 1) {
this[type + i]._x = guida._x + 20;
this[type + i]._y = guida._y;
} else {
tempX = this[type + (i - 1)]._x;
tempY = this[type + (i - 1)]._y;
this[type + i]._x = this[type + i]._x + ((tempX - this[type + i]._x) + 60);
this[type + i]._y = this[type + i]._y + ((TempY - this[type + i]._y) / 6);
}
i++;
}
i = 1;
while (i < _root.maxShots) {
if (this.hitTest(_root["sparo" + i])) {
n = 1;
while (n <= nemici) {
if (_root["sparo" + i].hitTest(this[type + n]) && (this[type + n].preso == false)) {
this[type + n].gotoAndPlay("esplodi");
this[type + n].preso = true;
this.presiorda = this.presiorda + 1;
if (this.presiorda >= nemici) {
bonus = new Object();
bonus.x = this[type + n]._x;
bonus.y = this[type + n]._y;
localToGlobal(bonus);
bonusX = bonus.x;
bonusY = bonus.y;
_root.bonusText._x = bonusX;
_root.bonusText._y = bonusY;
_root.bonusText.bonus.text = punti * 10;
_root.bonusText.play();
i = int(random(10));
if (i >= _root.bonusRate) {
_root.bonusIcon._x = bonusX;
_root.bonusIcon._y = bonusY;
_root.bonusIcon.scegliBonus();
_root.bonusIcon.attivato = true;
}
}
_root.score = _root.score + this.punti;
_root["sparo" + i].nemicicolpiti = _root["sparo" + i].nemicicolpiti + 1;
if ((_root["sparo" + i].nemicicolpiti == (_root["sparo" + i].type % 3)) && ((_root["sparo" + i].type % 3) > 0)) {
_root["sparo" + i].removeMovieClip();
}
}
n++;
}
}
i++;
}
n = 1;
while (n <= nemici) {
if ((this[type + n].hitTest(_root.strega.hotspot) && (this[type + n].preso == false)) && (_root.strega.viva == true)) {
if (_root.shield == true) {
_root.strega.scudo.gotoAndPlay("off");
} else {
_root.strega.viva = false;
}
}
n++;
}
} else {
unloadMovie (this);
}
}
Symbol 291 MovieClip Frame 4
_root.offset = 4;
stop();
Instance of Symbol 249 MovieClip in Symbol 291 MovieClip Frame 4
onClipEvent (load) {
nemici = 7;
type = "scare";
punti = 20;
this.completata = false;
i = 1;
while (i <= nemici) {
this[type + i].preso = false;
i++;
}
this.presiorda = 0;
}
onClipEvent (enterFrame) {
if (this.completata == false) {
i = 1;
while (i <= nemici) {
if (i == 1) {
this[type + i]._x = guida._x + 20;
this[type + i]._y = guida._y;
} else {
tempX = this[type + (i - 1)]._x;
tempY = this[type + (i - 1)]._y;
this[type + i]._x = this[type + i]._x + ((tempX - this[type + i]._x) + 60);
this[type + i]._y = this[type + i]._y + ((TempY - this[type + i]._y) / 6);
}
i++;
}
i = 1;
while (i < _root.maxShots) {
if (this.hitTest(_root["sparo" + i])) {
n = 1;
while (n <= nemici) {
if (_root["sparo" + i].hitTest(this[type + n]) && (this[type + n].preso == false)) {
this[type + n].gotoAndPlay("esplodi");
this[type + n].preso = true;
this.presiorda = this.presiorda + 1;
if (this.presiorda >= nemici) {
bonus = new Object();
bonus.x = this[type + n]._x;
bonus.y = this[type + n]._y;
localToGlobal(bonus);
bonusX = bonus.x;
bonusY = bonus.y;
_root.bonusText._x = bonusX;
_root.bonusText._y = bonusY;
_root.bonusText.bonus.text = punti * 10;
_root.bonusText.play();
i = int(random(10));
if (i >= _root.bonusRate) {
_root.bonusIcon._x = bonusX;
_root.bonusIcon._y = bonusY;
_root.bonusIcon.scegliBonus();
_root.bonusIcon.attivato = true;
}
}
_root.score = _root.score + this.punti;
_root["sparo" + i].nemicicolpiti = _root["sparo" + i].nemicicolpiti + 1;
if ((_root["sparo" + i].nemicicolpiti == (_root["sparo" + i].type % 3)) && ((_root["sparo" + i].type % 3) > 0)) {
_root["sparo" + i].removeMovieClip();
}
}
n++;
}
}
i++;
}
n = 1;
while (n <= nemici) {
if ((this[type + n].hitTest(_root.strega.hotspot) && (this[type + n].preso == false)) && (_root.strega.viva == true)) {
if (_root.shield == true) {
_root.strega.scudo.gotoAndPlay("off");
} else {
_root.strega.viva = false;
}
}
n++;
}
} else {
unloadMovie (this);
}
}
Symbol 291 MovieClip Frame 5
stop();
Instance of Symbol 250 MovieClip in Symbol 291 MovieClip Frame 5
onClipEvent (load) {
ampiezza = 8;
nemici = 7;
type = "scare";
punti = 20;
this.completata = false;
i = 1;
while (i <= nemici) {
this[type + i].preso = false;
i++;
}
this.presiorda = 0;
}
onClipEvent (enterFrame) {
if (this.completata == false) {
i = 1;
while (i <= nemici) {
if (i == 1) {
this[type + i]._x = guida._x + 40;
this[type + i]._y = guida._y;
} else {
tempX = this[type + (i - 1)]._x;
tempY = this[type + (i - 1)]._y;
this[type + i]._x = this[type + i]._x + ((tempX - this[type + i]._x) + 60);
this[type + i]._y = this[type + i]._y + ((TempY - this[type + i]._y) / 6);
}
i++;
}
i = 1;
while (i < _root.maxShots) {
if (this.hitTest(_root["sparo" + i])) {
n = 1;
while (n <= nemici) {
if (_root["sparo" + i].hitTest(this[type + n]) && (this[type + n].preso == false)) {
this[type + n].gotoAndPlay("esplodi");
this[type + n].preso = true;
this.presiorda = this.presiorda + 1;
if (this.presiorda >= nemici) {
bonus = new Object();
bonus.x = this[type + n]._x;
bonus.y = this[type + n]._y;
localToGlobal(bonus);
bonusX = bonus.x;
bonusY = bonus.y;
_root.bonusText._x = bonusX;
_root.bonusText._y = bonusY;
_root.bonusText.bonus.text = punti * 10;
_root.bonusText.play();
i = int(random(10));
if (i >= _root.bonusRate) {
_root.bonusIcon._x = bonusX;
_root.bonusIcon._y = bonusY;
_root.bonusIcon.scegliBonus();
_root.bonusIcon.attivato = true;
}
}
_root.score = _root.score + this.punti;
_root["sparo" + i].nemicicolpiti = _root["sparo" + i].nemicicolpiti + 1;
if ((_root["sparo" + i].nemicicolpiti == (_root["sparo" + i].type % 3)) && ((_root["sparo" + i].type % 3) > 0)) {
_root["sparo" + i].removeMovieClip();
}
}
n++;
}
}
i++;
}
n = 1;
while (n <= nemici) {
if ((this[type + n].hitTest(_root.strega.hotspot) && (this[type + n].preso == false)) && (_root.strega.viva == true)) {
if (_root.shield == true) {
_root.strega.scudo.gotoAndPlay("off");
} else {
_root.strega.viva = false;
}
}
n++;
}
} else {
unloadMovie (this);
}
}
Symbol 291 MovieClip Frame 6
stop();
Instance of Symbol 251 MovieClip in Symbol 291 MovieClip Frame 6
onClipEvent (load) {
ampiezza = 8;
nemici = 7;
type = "scare";
punti = 20;
this.completata = false;
i = 1;
while (i <= nemici) {
this[type + i].preso = false;
i++;
}
this.presiorda = 0;
}
onClipEvent (enterFrame) {
if (this.completata == false) {
i = 1;
while (i <= nemici) {
if (i == 1) {
this[type + i]._x = guida._x + 30;
this[type + i]._y = guida._y;
} else {
tempX = this[type + (i - 1)]._x;
tempY = this[type + (i - 1)]._y;
this[type + i]._x = this[type + i]._x + ((tempX - this[type + i]._x) + 60);
this[type + i]._y = this[type + i]._y + ((TempY - this[type + i]._y) / 6);
}
i++;
}
i = 1;
while (i < _root.maxShots) {
if (this.hitTest(_root["sparo" + i])) {
n = 1;
while (n <= nemici) {
if (_root["sparo" + i].hitTest(this[type + n]) && (this[type + n].preso == false)) {
this[type + n].gotoAndPlay("esplodi");
this[type + n].preso = true;
this.presiorda = this.presiorda + 1;
if (this.presiorda >= nemici) {
bonus = new Object();
bonus.x = this[type + n]._x;
bonus.y = this[type + n]._y;
localToGlobal(bonus);
bonusX = bonus.x;
bonusY = bonus.y;
_root.bonusText._x = bonusX;
_root.bonusText._y = bonusY;
_root.bonusText.bonus.text = punti * 10;
_root.bonusText.play();
i = int(random(10));
if (i >= _root.bonusRate) {
_root.bonusIcon._x = bonusX;
_root.bonusIcon._y = bonusY;
_root.bonusIcon.scegliBonus();
_root.bonusIcon.attivato = true;
}
}
_root.score = _root.score + this.punti;
_root["sparo" + i].nemicicolpiti = _root["sparo" + i].nemicicolpiti + 1;
if ((_root["sparo" + i].nemicicolpiti == (_root["sparo" + i].type % 3)) && ((_root["sparo" + i].type % 3) > 0)) {
_root["sparo" + i].removeMovieClip();
}
}
n++;
}
}
i++;
}
n = 1;
while (n <= nemici) {
if ((this[type + n].hitTest(_root.strega.hotspot) && (this[type + n].preso == false)) && (_root.strega.viva == true)) {
if (_root.shield == true) {
_root.strega.scudo.gotoAndPlay("off");
} else {
_root.strega.viva = false;
}
}
n++;
}
} else {
unloadMovie (this);
}
}
Symbol 291 MovieClip Frame 7
_root.offset = 7;
stop();
Instance of Symbol 264 MovieClip in Symbol 291 MovieClip Frame 7
onClipEvent (load) {
ampiezza = 8;
nemici = 5;
type = "eye";
punti = 10;
this.completata = false;
i = 1;
while (i <= nemici) {
this[type + i].preso = false;
i++;
}
this.presiorda = 0;
}
onClipEvent (enterFrame) {
if (this.completata == false) {
i = 1;
while (i <= nemici) {
if (i == 1) {
this[type + i]._x = guida._x + 20;
this[type + i]._y = guida._y;
} else {
tempX = this[type + (i - 1)]._x;
tempY = this[type + (i - 1)]._y;
this[type + i]._x = this[type + i]._x + ((tempX - this[type + i]._x) + 60);
this[type + i]._y = this[type + i]._y + ((TempY - this[type + i]._y) / 6);
}
i++;
}
i = 1;
while (i < _root.maxShots) {
if (this.hitTest(_root["sparo" + i])) {
n = 1;
while (n <= nemici) {
if (_root["sparo" + i].hitTest(this[type + n]) && (this[type + n].preso == false)) {
this[type + n].gotoAndPlay("esplodi");
this[type + n].preso = true;
this.presiorda = this.presiorda + 1;
if (this.presiorda >= nemici) {
bonus = new Object();
bonus.x = this[type + n]._x;
bonus.y = this[type + n]._y;
localToGlobal(bonus);
bonusX = bonus.x;
bonusY = bonus.y;
_root.bonusText._x = bonusX;
_root.bonusText._y = bonusY;
_root.bonusText.bonus.text = punti * 10;
_root.bonusText.play();
i = int(random(10));
if (i >= _root.bonusRate) {
_root.bonusIcon._x = bonusX;
_root.bonusIcon._y = bonusY;
_root.bonusIcon.scegliBonus();
_root.bonusIcon.attivato = true;
}
}
_root.score = _root.score + this.punti;
_root["sparo" + i].nemicicolpiti = _root["sparo" + i].nemicicolpiti + 1;
if ((_root["sparo" + i].nemicicolpiti == (_root["sparo" + i].type % 3)) && ((_root["sparo" + i].type % 3) > 0)) {
_root["sparo" + i].removeMovieClip();
}
}
n++;
}
}
i++;
}
n = 1;
while (n <= nemici) {
if ((this[type + n].hitTest(_root.strega.hotspot) && (this[type + n].preso == false)) && (_root.strega.viva == true)) {
if (_root.shield == true) {
_root.strega.scudo.gotoAndPlay("off");
} else {
_root.strega.viva = false;
}
}
n++;
}
} else {
unloadMovie (this);
}
}
Symbol 291 MovieClip Frame 8
stop();
Instance of Symbol 265 MovieClip in Symbol 291 MovieClip Frame 8
onClipEvent (load) {
ampiezza = 8;
nemici = 5;
type = "eye";
punti = 10;
this.completata = false;
i = 1;
while (i <= nemici) {
this[type + i].preso = false;
i++;
}
this.presiorda = 0;
}
onClipEvent (enterFrame) {
if (this.completata == false) {
i = 1;
while (i <= nemici) {
if (i == 1) {
this[type + i]._x = guida._x + 20;
this[type + i]._y = guida._y;
} else {
tempX = this[type + (i - 1)]._x;
tempY = this[type + (i - 1)]._y;
this[type + i]._x = this[type + i]._x + ((tempX - this[type + i]._x) + 60);
this[type + i]._y = this[type + i]._y + ((TempY - this[type + i]._y) / 6);
}
i++;
}
i = 1;
while (i < _root.maxShots) {
if (this.hitTest(_root["sparo" + i])) {
n = 1;
while (n <= nemici) {
if (_root["sparo" + i].hitTest(this[type + n]) && (this[type + n].preso == false)) {
this[type + n].gotoAndPlay("esplodi");
this[type + n].preso = true;
this.presiorda = this.presiorda + 1;
if (this.presiorda >= nemici) {
bonus = new Object();
bonus.x = this[type + n]._x;
bonus.y = this[type + n]._y;
localToGlobal(bonus);
bonusX = bonus.x;
bonusY = bonus.y;
_root.bonusText._x = bonusX;
_root.bonusText._y = bonusY;
_root.bonusText.bonus.text = punti * 10;
_root.bonusText.play();
i = int(random(10));
if (i >= _root.bonusRate) {
_root.bonusIcon._x = bonusX;
_root.bonusIcon._y = bonusY;
_root.bonusIcon.scegliBonus();
_root.bonusIcon.attivato = true;
}
}
_root.score = _root.score + this.punti;
_root["sparo" + i].nemicicolpiti = _root["sparo" + i].nemicicolpiti + 1;
if ((_root["sparo" + i].nemicicolpiti == (_root["sparo" + i].type % 3)) && ((_root["sparo" + i].type % 3) > 0)) {
_root["sparo" + i].removeMovieClip();
}
}
n++;
}
}
i++;
}
n = 1;
while (n <= nemici) {
if ((this[type + n].hitTest(_root.strega.hotspot) && (this[type + n].preso == false)) && (_root.strega.viva == true)) {
if (_root.shield == true) {
_root.strega.scudo.gotoAndPlay("off");
} else {
_root.strega.viva = false;
}
}
n++;
}
} else {
unloadMovie (this);
}
}
Symbol 291 MovieClip Frame 9
_root.offset = 9;
stop();
Instance of Symbol 276 MovieClip "fire1" in Symbol 291 MovieClip Frame 9
onClipEvent (load) {
xRate = -5;
startX = this._x;
punti = 50;
preso = false;
giro = 1;
}
onClipEvent (enterFrame) {
this._x = this._x + xRate;
xRate = xRate + (xRate / 20);
if (this._x < -1000) {
this._x = startX;
this.gotoAndPlay(1);
this._visible = true;
this.preso = false;
xrate = -5;
giro = giro + 1;
if (giro > 20) {
_root.completata = true;
}
this._y = -105 + int(random(216));
}
if ((this.hitTest(_root.strega.hotspot) && (_root.strega.viva == true)) && (this.preso == false)) {
if (_root.shield == true) {
_root.strega.scudo.gotoAndPlay("off");
} else {
_root.strega.viva = false;
}
}
i = 1;
while (i < _root.maxShots) {
if (this.hitTest(_root["sparo" + i])) {
if (_root["sparo" + i].hitTest(this) && (this.preso == false)) {
this.gotoAndPlay("esplodi");
this.preso = true;
_root.score = _root.score + this.punti;
_root["sparo" + i].nemicicolpiti = _root["sparo" + i].nemicicolpiti + 1;
if ((_root["sparo" + i].nemicicolpiti == (_root["sparo" + i].type % 3)) && ((_root["sparo" + i].type % 3) > 0)) {
_root["sparo" + i].removeMovieClip();
}
}
}
i++;
}
}
Instance of Symbol 276 MovieClip "fire2" in Symbol 291 MovieClip Frame 9
onClipEvent (load) {
xRate = -5;
startX = this._x;
punti = 50;
preso = false;
giro = 1;
}
onClipEvent (enterFrame) {
this._x = this._x + xRate;
xRate = xRate + (xRate / 20);
if (this._x < -1000) {
this._x = startX;
this.gotoAndPlay(1);
this._visible = true;
this.preso = false;
xrate = -5;
giro = giro + 1;
if (giro > 20) {
_root.completata = true;
}
this._y = -105 + int(random(216));
}
if ((this.hitTest(_root.strega.hotspot) && (_root.strega.viva == true)) && (this.preso == false)) {
if (_root.shield == true) {
_root.strega.scudo.gotoAndPlay("off");
} else {
_root.strega.viva = false;
}
}
i = 1;
while (i < _root.maxShots) {
if (this.hitTest(_root["sparo" + i])) {
if (_root["sparo" + i].hitTest(this) && (this.preso == false)) {
this.gotoAndPlay("esplodi");
this.preso = true;
_root.score = _root.score + this.punti;
_root["sparo" + i].nemicicolpiti = _root["sparo" + i].nemicicolpiti + 1;
if ((_root["sparo" + i].nemicicolpiti == (_root["sparo" + i].type % 3)) && ((_root["sparo" + i].type % 3) > 0)) {
_root["sparo" + i].removeMovieClip();
}
}
}
i++;
}
}
Symbol 291 MovieClip Frame 10
_root.ordaFinale = true;
stop();
Instance of Symbol 232 MovieClip in Symbol 291 MovieClip Frame 10
onClipEvent (load) {
_root.energiaboss = 100;
}
onClipEvent (enterFrame) {
if (this._xscale != _root.energiaboss) {
this._xscale = this._xscale - 0.5;
}
if (_root.energiaboss <= 0) {
this._xscale = 0;
}
}
Symbol 298 MovieClip Frame 19
gotoAndPlay (1);
Symbol 298 MovieClip Frame 20
this.esplosa = true;
Symbol 298 MovieClip Frame 33
this._visible = false;
this.stop();
Instance of Symbol 177 MovieClip "guida" in Symbol 299 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 299 MovieClip Frame 130
_root.completata = true;
stop();
Instance of Symbol 177 MovieClip "guida" in Symbol 300 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 300 MovieClip Frame 150
_root.completata = true;
stop();
Symbol 304 MovieClip Frame 28
gotoAndPlay (1);
Symbol 304 MovieClip Frame 29
this.esplosa = true;
Symbol 304 MovieClip Frame 42
this._visible = false;
this.stop();
Instance of Symbol 177 MovieClip "guida" in Symbol 305 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 305 MovieClip Frame 164
_root.completata = true;
stop();
Instance of Symbol 177 MovieClip "guida" in Symbol 306 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 306 MovieClip Frame 168
_root.completata = true;
stop();
Instance of Symbol 177 MovieClip "guida" in Symbol 307 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 307 MovieClip Frame 171
_root.completata = true;
stop();
Symbol 310 MovieClip Frame 19
gotoAndPlay (1);
Symbol 310 MovieClip Frame 20
this.esplosa = true;
Symbol 310 MovieClip Frame 33
this._visible = false;
stop();
Symbol 321 MovieClip Frame 20
gotoAndPlay (1);
Symbol 321 MovieClip Frame 28
_parent._parent.ordapiccola.gotoAndPlay(2);
Symbol 321 MovieClip Frame 35
gotoAndPlay (1);
Symbol 321 MovieClip Frame 49
stop();
Symbol 322 MovieClip Frame 1
stop();
Symbol 322 MovieClip Frame 15
gotoAndPlay (1);
Symbol 323 MovieClip Frame 1
t1 = false;
t2 = false;
t3 = false;
t4 = false;
stop();
Symbol 323 MovieClip Frame 2
stop();
Instance of Symbol 298 MovieClip in Symbol 323 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_parent.t1 == false) {
strega = new object();
strega.x = _root.strega._x;
strega.y = _root.strega._y;
globalToLocal(strega);
xdest = (this._x - strega.x) / (-_parent.rate);
this._y = strega.y;
_parent.t1 = true;
}
if ((this._x < -900) || (this._x > 500)) {
_parent.play();
} else {
this._x = this._x + xdest;
this._y = this._y + ydest;
}
if (this.hitTest(_root.strega.hotspot) && (_root.strega.viva == true)) {
if (_root.shield == true) {
_root.strega.scudo.gotoAndPlay("off");
} else {
_root.strega.viva = false;
}
}
}
Symbol 323 MovieClip Frame 3
stop();
Instance of Symbol 298 MovieClip in Symbol 323 MovieClip Frame 3
onClipEvent (enterFrame) {
if (_parent.t2 == false) {
strega = new object();
strega.x = _root.strega._x;
strega.y = _root.strega._y;
globalToLocal(strega);
xdest = (this._x - strega.x) / (-_parent.rate);
this._y = strega.y;
_parent.t2 = true;
}
if ((this._x < -900) || (this._x > 500)) {
_parent.play();
} else {
this._x = this._x + xdest;
this._y = this._y + ydest;
}
if (this.hitTest(_root.strega.hotspot) && (_root.strega.viva == true)) {
if (_root.shield == true) {
_root.strega.scudo.gotoAndPlay("off");
} else {
_root.strega.viva = false;
}
}
}
Symbol 323 MovieClip Frame 4
stop();
Instance of Symbol 298 MovieClip in Symbol 323 MovieClip Frame 4
onClipEvent (enterFrame) {
if (_parent.t3 == false) {
strega = new object();
strega.x = _root.strega._x;
strega.y = _root.strega._y;
globalToLocal(strega);
xdest = (this._x - strega.x) / (-_parent.rate);
this._y = strega.y;
_parent.t3 = true;
}
if ((this._x < -900) || (this._x > 500)) {
_parent.play();
} else {
this._x = this._x + xdest;
this._y = this._y + ydest;
}
if (this.hitTest(_root.strega.hotspot) && (_root.strega.viva == true)) {
if (_root.shield == true) {
_root.strega.scudo.gotoAndPlay("off");
} else {
_root.strega.viva = false;
}
}
}
Symbol 323 MovieClip Frame 5
stop();
Instance of Symbol 298 MovieClip in Symbol 323 MovieClip Frame 5
onClipEvent (enterFrame) {
if (_parent.t4 == false) {
strega = new object();
strega.x = _root.strega._x;
strega.y = _root.strega._y;
globalToLocal(strega);
xdest = (this._x - strega.x) / (-_parent.rate);
this._y = strega.y;
_parent.t4 = true;
}
if ((this._x < -900) || (this._x > 500)) {
_parent.play();
} else {
this._x = this._x + xdest;
this._y = this._y + ydest;
}
if (this.hitTest(_root.strega.hotspot) && (_root.strega.viva == true)) {
if (_root.shield == true) {
_root.strega.scudo.gotoAndPlay("off");
} else {
_root.strega.viva = false;
}
}
}
Symbol 323 MovieClip Frame 6
_parent.batboss.target = _parent.batboss.target + 1;
gotoAndPlay (1);
Symbol 325 MovieClip Frame 1
_root.ordaFinale = false;
this.bonus._visible = true;
Symbol 325 MovieClip Frame 2
_root.offset = 2;
stop();
Instance of Symbol 299 MovieClip in Symbol 325 MovieClip Frame 2
onClipEvent (load) {
nemici = 5;
type = "drac";
punti = 30;
this.completata = false;
i = 1;
while (i <= nemici) {
this[type + i].preso = false;
i++;
}
this.presiorda = 0;
}
onClipEvent (enterFrame) {
if (this.completata == false) {
i = 1;
while (i <= nemici) {
if (i == 1) {
this[type + i]._x = guida._x + 20;
this[type + i]._y = guida._y;
} else {
tempX = this[type + (i - 1)]._x;
tempY = this[type + (i - 1)]._y;
this[type + i]._x = this[type + i]._x + ((tempX - this[type + i]._x) + 60);
this[type + i]._y = this[type + i]._y + ((TempY - this[type + i]._y) / 6);
}
i++;
}
i = 1;
while (i < _root.maxShots) {
if (this.hitTest(_root["sparo" + i])) {
n = 1;
while (n <= nemici) {
if (_root["sparo" + i].hitTest(this[type + n]) && (this[type + n].preso == false)) {
this[type + n].gotoAndPlay("esplodi");
this[type + n].preso = true;
this.presiorda = this.presiorda + 1;
if (this.presiorda >= nemici) {
bonus = new Object();
bonus.x = this[type + n]._x;
bonus.y = this[type + n]._y;
localToGlobal(bonus);
bonusX = bonus.x;
bonusY = bonus.y;
_root.bonusText._x = bonusX;
_root.bonusText._y = bonusY;
_root.bonusText.bonus.text = punti * 10;
_root.bonusText.play();
i = int(random(10));
if (i >= _root.bonusRate) {
_root.bonusIcon._x = bonusX;
_root.bonusIcon._y = bonusY;
_root.bonusIcon.scegliBonus();
_root.bonusIcon.attivato = true;
}
}
_root.score = _root.score + this.punti;
_root["sparo" + i].nemicicolpiti = _root["sparo" + i].nemicicolpiti + 1;
if ((_root["sparo" + i].nemicicolpiti == (_root["sparo" + i].type % 3)) && ((_root["sparo" + i].type % 3) > 0)) {
_root["sparo" + i].removeMovieClip();
}
}
n++;
}
}
i++;
}
n = 1;
while (n <= nemici) {
if ((this[type + n].hitTest(_root.strega.hotspot) && (this[type + n].preso == false)) && (_root.strega.viva == true)) {
if (_root.shield == true) {
_root.strega.scudo.gotoAndPlay("off");
} else {
_root.strega.viva = false;
}
}
n++;
}
} else {
unloadMovie (this);
}
}
Symbol 325 MovieClip Frame 3
stop();
Instance of Symbol 300 MovieClip "orda1" in Symbol 325 MovieClip Frame 3
onClipEvent (load) {
ampiezza = 8;
nemici = 5;
type = "drac";
punti = 10;
this.completata = false;
i = 1;
while (i <= nemici) {
this[type + i].preso = false;
i++;
}
this.presiorda = 0;
}
onClipEvent (enterFrame) {
if (this.completata == false) {
i = 1;
while (i <= nemici) {
if (i == 1) {
this[type + i]._x = guida._x + 20;
this[type + i]._y = guida._y;
} else {
tempX = this[type + (i - 1)]._x;
tempY = this[type + (i - 1)]._y;
this[type + i]._x = this[type + i]._x + ((tempX - this[type + i]._x) + 60);
this[type + i]._y = this[type + i]._y + ((TempY - this[type + i]._y) / 6);
}
i++;
}
i = 1;
while (i < _root.maxShots) {
if (this.hitTest(_root["sparo" + i])) {
n = 1;
while (n <= nemici) {
if (_root["sparo" + i].hitTest(this[type + n]) && (this[type + n].preso == false)) {
this[type + n].gotoAndPlay("esplodi");
this[type + n].preso = true;
this.presiorda = this.presiorda + 1;
if (this.presiorda >= nemici) {
bonus = new Object();
bonus.x = this[type + n]._x;
bonus.y = this[type + n]._y;
localToGlobal(bonus);
bonusX = bonus.x;
bonusY = bonus.y;
_root.bonusText._x = bonusX;
_root.bonusText._y = bonusY;
_root.bonusText.bonus.text = punti * 10;
_root.bonusText.play();
i = int(random(10));
if (i >= _root.bonusRate) {
_root.bonusIcon._x = bonusX;
_root.bonusIcon._y = bonusY;
_root.bonusIcon.scegliBonus();
_root.bonusIcon.attivato = true;
}
}
_root.score = _root.score + this.punti;
_root["sparo" + i].nemicicolpiti = _root["sparo" + i].nemicicolpiti + 1;
if ((_root["sparo" + i].nemicicolpiti == (_root["sparo" + i].type % 3)) && ((_root["sparo" + i].type % 3) > 0)) {
_root["sparo" + i].removeMovieClip();
}
}
n++;
}
}
i++;
}
n = 1;
while (n <= nemici) {
if ((this[type + n].hitTest(_root.strega.hotspot) && (this[type + n].preso == false)) && (_root.strega.viva == true)) {
if (_root.shield == true) {
_root.strega.scudo.gotoAndPlay("off");
} else {
_root.strega.viva = false;
}
}
n++;
}
} else {
unloadMovie (this);
}
}
Symbol 325 MovieClip Frame 4
_root.offset = 4;
stop();
Instance of Symbol 305 MovieClip in Symbol 325 MovieClip Frame 4
onClipEvent (load) {
ampiezza = 8;
nemici = 7;
type = "death";
punti = 20;
this.completata = false;
i = 1;
while (i <= nemici) {
this[type + i].preso = false;
i++;
}
this.presiorda = 0;
}
onClipEvent (enterFrame) {
if (this.completata == false) {
i = 1;
while (i <= nemici) {
if (i == 1) {
this[type + i]._x = guida._x + 20;
this[type + i]._y = guida._y;
} else {
tempX = this[type + (i - 1)]._x;
tempY = this[type + (i - 1)]._y;
this[type + i]._x = this[type + i]._x + ((tempX - this[type + i]._x) + 60);
this[type + i]._y = this[type + i]._y + ((TempY - this[type + i]._y) / 6);
}
i++;
}
i = 1;
while (i < _root.maxShots) {
if (this.hitTest(_root["sparo" + i])) {
n = 1;
while (n <= nemici) {
if (_root["sparo" + i].hitTest(this[type + n]) && (this[type + n].preso == false)) {
this[type + n].gotoAndPlay("esplodi");
this[type + n].preso = true;
this.presiorda = this.presiorda + 1;
if (this.presiorda >= nemici) {
bonus = new Object();
bonus.x = this[type + n]._x;
bonus.y = this[type + n]._y;
localToGlobal(bonus);
bonusX = bonus.x;
bonusY = bonus.y;
_root.bonusText._x = bonusX;
_root.bonusText._y = bonusY;
_root.bonusText.bonus.text = punti * 10;
_root.bonusText.play();
i = int(random(10));
if (i >= _root.bonusRate) {
_root.bonusIcon._x = bonusX;
_root.bonusIcon._y = bonusY;
_root.bonusIcon.scegliBonus();
_root.bonusIcon.attivato = true;
}
}
_root.score = _root.score + this.punti;
_root["sparo" + i].nemicicolpiti = _root["sparo" + i].nemicicolpiti + 1;
if ((_root["sparo" + i].nemicicolpiti == (_root["sparo" + i].type % 3)) && ((_root["sparo" + i].type % 3) > 0)) {
_root["sparo" + i].removeMovieClip();
}
}
n++;
}
}
i++;
}
n = 1;
while (n <= nemici) {
if ((this[type + n].hitTest(_root.strega.hotspot) && (this[type + n].preso == false)) && (_root.strega.viva == true)) {
if (_root.shield == true) {
_root.strega.scudo.gotoAndPlay("off");
} else {
_root.strega.viva = false;
}
}
n++;
}
} else {
unloadMovie (this);
}
}
Symbol 325 MovieClip Frame 5
stop();
Instance of Symbol 306 MovieClip in Symbol 325 MovieClip Frame 5
onClipEvent (load) {
ampiezza = 8;
nemici = 7;
type = "death";
punti = 20;
this.completata = false;
i = 1;
while (i <= nemici) {
this[type + i].preso = false;
i++;
}
this.presiorda = 0;
}
onClipEvent (enterFrame) {
if (this.completata == false) {
i = 1;
while (i <= nemici) {
if (i == 1) {
this[type + i]._x = guida._x + 20;
this[type + i]._y = guida._y;
} else {
tempX = this[type + (i - 1)]._x;
tempY = this[type + (i - 1)]._y;
this[type + i]._x = this[type + i]._x + ((tempX - this[type + i]._x) + 60);
this[type + i]._y = this[type + i]._y + ((TempY - this[type + i]._y) / 6);
}
i++;
}
i = 1;
while (i < _root.maxShots) {
if (this.hitTest(_root["sparo" + i])) {
n = 1;
while (n <= nemici) {
if (_root["sparo" + i].hitTest(this[type + n]) && (this[type + n].preso == false)) {
this[type + n].gotoAndPlay("esplodi");
this[type + n].preso = true;
this.presiorda = this.presiorda + 1;
if (this.presiorda >= nemici) {
bonus = new Object();
bonus.x = this[type + n]._x;
bonus.y = this[type + n]._y;
localToGlobal(bonus);
bonusX = bonus.x;
bonusY = bonus.y;
_root.bonusText._x = bonusX;
_root.bonusText._y = bonusY;
_root.bonusText.bonus.text = punti * 10;
_root.bonusText.play();
i = int(random(10));
if (i >= _root.bonusRate) {
_root.bonusIcon._x = bonusX;
_root.bonusIcon._y = bonusY;
_root.bonusIcon.scegliBonus();
_root.bonusIcon.attivato = true;
}
}
_root.score = _root.score + this.punti;
_root["sparo" + i].nemicicolpiti = _root["sparo" + i].nemicicolpiti + 1;
if ((_root["sparo" + i].nemicicolpiti == (_root["sparo" + i].type % 3)) && ((_root["sparo" + i].type % 3) > 0)) {
_root["sparo" + i].removeMovieClip();
}
}
n++;
}
}
i++;
}
n = 1;
while (n <= nemici) {
if ((this[type + n].hitTest(_root.strega.hotspot) && (this[type + n].preso == false)) && (_root.strega.viva == true)) {
if (_root.shield == true) {
_root.strega.scudo.gotoAndPlay("off");
} else {
_root.strega.viva = false;
}
}
n++;
}
} else {
unloadMovie (this);
}
}
Symbol 325 MovieClip Frame 6
stop();
Instance of Symbol 307 MovieClip in Symbol 325 MovieClip Frame 6
onClipEvent (load) {
ampiezza = 8;
nemici = 7;
type = "death";
punti = 20;
this.completata = false;
i = 1;
while (i <= nemici) {
this[type + i].preso = false;
i++;
}
this.presiorda = 0;
}
onClipEvent (enterFrame) {
if (this.completata == false) {
i = 1;
while (i <= nemici) {
if (i == 1) {
this[type + i]._x = guida._x + 20;
this[type + i]._y = guida._y;
} else {
tempX = this[type + (i - 1)]._x;
tempY = this[type + (i - 1)]._y;
this[type + i]._x = this[type + i]._x + ((tempX - this[type + i]._x) + 60);
this[type + i]._y = this[type + i]._y + ((TempY - this[type + i]._y) / 6);
}
i++;
}
i = 1;
while (i < _root.maxShots) {
if (this.hitTest(_root["sparo" + i])) {
n = 1;
while (n <= nemici) {
if (_root["sparo" + i].hitTest(this[type + n]) && (this[type + n].preso == false)) {
this[type + n].gotoAndPlay("esplodi");
this[type + n].preso = true;
this.presiorda = this.presiorda + 1;
if (this.presiorda >= nemici) {
bonus = new Object();
bonus.x = this[type + n]._x;
bonus.y = this[type + n]._y;
localToGlobal(bonus);
bonusX = bonus.x;
bonusY = bonus.y;
_root.bonusText._x = bonusX;
_root.bonusText._y = bonusY;
_root.bonusText.bonus.text = punti * 10;
_root.bonusText.play();
i = int(random(10));
if (i >= _root.bonusRate) {
_root.bonusIcon._x = bonusX;
_root.bonusIcon._y = bonusY;
_root.bonusIcon.scegliBonus();
_root.bonusIcon.attivato = true;
}
}
_root.score = _root.score + this.punti;
_root["sparo" + i].nemicicolpiti = _root["sparo" + i].nemicicolpiti + 1;
if ((_root["sparo" + i].nemicicolpiti == (_root["sparo" + i].type % 3)) && ((_root["sparo" + i].type % 3) > 0)) {
_root["sparo" + i].removeMovieClip();
}
}
n++;
}
}
i++;
}
n = 1;
while (n <= nemici) {
if ((this[type + n].hitTest(_root.strega.hotspot) && (this[type + n].preso == false)) && (_root.strega.viva == true)) {
if (_root.shield == true) {
_root.strega.scudo.gotoAndPlay("off");
} else {
_root.strega.viva = false;
}
}
n++;
}
} else {
unloadMovie (this);
}
}
Symbol 325 MovieClip Frame 7
_root.offset = 7;
stop();
Instance of Symbol 310 MovieClip "mano1" in Symbol 325 MovieClip Frame 7
onClipEvent (load) {
xRate = -5;
startX = this._x;
punti = 50;
preso = false;
giro = 1;
}
onClipEvent (enterFrame) {
this._x = this._x + xRate;
xRate = xRate + (xRate / 20);
if (this._x < -1000) {
this._x = startX;
this.gotoAndPlay(1);
this._visible = true;
this.preso = false;
xrate = -5;
giro = giro + 1;
if (giro > 20) {
_root.completata = true;
}
this._y = -105 + int(random(216));
}
if ((this.hitTest(_root.strega.hotspot) && (_root.strega.viva == true)) && (this.preso == false)) {
if (_root.shield == true) {
_root.strega.scudo.gotoAndPlay("off");
} else {
_root.strega.viva = false;
}
}
i = 1;
while (i < _root.maxShots) {
if (this.hitTest(_root["sparo" + i])) {
if (_root["sparo" + i].hitTest(this) && (this.preso == false)) {
this.gotoAndPlay("esplodi");
this.preso = true;
_root.score = _root.score + this.punti;
_root["sparo" + i].nemicicolpiti = _root["sparo" + i].nemicicolpiti + 1;
if ((_root["sparo" + i].nemicicolpiti == (_root["sparo" + i].type % 3)) && ((_root["sparo" + i].type % 3) > 0)) {
_root["sparo" + i].removeMovieClip();
}
}
}
i++;
}
}
Instance of Symbol 310 MovieClip "mano1" in Symbol 325 MovieClip Frame 7
onClipEvent (load) {
xRate = -5;
startX = this._x;
punti = 50;
preso = false;
giro = 1;
}
onClipEvent (enterFrame) {
this._x = this._x + xRate;
xRate = xRate + (xRate / 20);
if (this._x < -1000) {
this._x = startX;
this.gotoAndPlay(1);
this._visible = true;
this.preso = false;
xrate = -5;
giro = giro + 1;
if (giro > 20) {
_root.completata = true;
}
this._y = -105 + int(random(216));
}
if ((this.hitTest(_root.strega.hotspot) && (_root.strega.viva == true)) && (this.preso == false)) {
if (_root.shield == true) {
_root.strega.scudo.gotoAndPlay("off");
} else {
_root.strega.viva = false;
}
}
i = 1;
while (i < _root.maxShots) {
if (this.hitTest(_root["sparo" + i])) {
if (_root["sparo" + i].hitTest(this) && (this.preso == false)) {
this.gotoAndPlay("esplodi");
this.preso = true;
_root.score = _root.score + this.punti;
_root["sparo" + i].nemicicolpiti = _root["sparo" + i].nemicicolpiti + 1;
if ((_root["sparo" + i].nemicicolpiti == (_root["sparo" + i].type % 3)) && ((_root["sparo" + i].type % 3) > 0)) {
_root["sparo" + i].removeMovieClip();
}
}
}
i++;
}
}
Instance of Symbol 310 MovieClip "mano1" in Symbol 325 MovieClip Frame 7
onClipEvent (load) {
xRate = -5;
startX = this._x;
punti = 50;
preso = false;
giro = 1;
}
onClipEvent (enterFrame) {
this._x = this._x + xRate;
xRate = xRate + (xRate / 20);
if (this._x < -1000) {
this._x = startX;
this.gotoAndPlay(1);
this._visible = true;
this.preso = false;
xrate = -5;
giro = giro + 1;
if (giro > 20) {
_root.completata = true;
}
this._y = -105 + int(random(216));
}
if ((this.hitTest(_root.strega.hotspot) && (_root.strega.viva == true)) && (this.preso == false)) {
if (_root.shield == true) {
_root.strega.scudo.gotoAndPlay("off");
} else {
_root.strega.viva = false;
}
}
i = 1;
while (i < _root.maxShots) {
if (this.hitTest(_root["sparo" + i])) {
if (_root["sparo" + i].hitTest(this) && (this.preso == false)) {
this.gotoAndPlay("esplodi");
this.preso = true;
_root.score = _root.score + this.punti;
_root["sparo" + i].nemicicolpiti = _root["sparo" + i].nemicicolpiti + 1;
if ((_root["sparo" + i].nemicicolpiti == (_root["sparo" + i].type % 3)) && ((_root["sparo" + i].type % 3) > 0)) {
_root["sparo" + i].removeMovieClip();
}
}
}
i++;
}
}
Instance of Symbol 310 MovieClip "mano1" in Symbol 325 MovieClip Frame 7
onClipEvent (load) {
xRate = -5;
startX = this._x;
punti = 50;
preso = false;
giro = 1;
}
onClipEvent (enterFrame) {
this._x = this._x + xRate;
xRate = xRate + (xRate / 20);
if (this._x < -1000) {
this._x = startX;
this.gotoAndPlay(1);
this._visible = true;
this.preso = false;
xrate = -5;
giro = giro + 1;
if (giro > 20) {
_root.completata = true;
}
this._y = -105 + int(random(216));
}
if ((this.hitTest(_root.strega.hotspot) && (_root.strega.viva == true)) && (this.preso == false)) {
if (_root.shield == true) {
_root.strega.scudo.gotoAndPlay("off");
} else {
_root.strega.viva = false;
}
}
i = 1;
while (i < _root.maxShots) {
if (this.hitTest(_root["sparo" + i])) {
if (_root["sparo" + i].hitTest(this) && (this.preso == false)) {
this.gotoAndPlay("esplodi");
this.preso = true;
_root.score = _root.score + this.punti;
_root["sparo" + i].nemicicolpiti = _root["sparo" + i].nemicicolpiti + 1;
if ((_root["sparo" + i].nemicicolpiti == (_root["sparo" + i].type % 3)) && ((_root["sparo" + i].type % 3) > 0)) {
_root["sparo" + i].removeMovieClip();
}
}
}
i++;
}
}
Symbol 325 MovieClip Frame 8
stop();
Symbol 325 MovieClip Frame 9
stop();
Symbol 325 MovieClip Frame 10
_root.ordaFinale = true;
stop();
Instance of Symbol 322 MovieClip "batboss" in Symbol 325 MovieClip Frame 10
onClipEvent (load) {
function pari(num) {
if (num == 0) {
return(true);
}
if ((num % 2) != 0) {
return(false);
}
return(true);
}
this.morto = false;
steps = new Array();
steps[0] = [-368, 0];
steps[1] = [-578, 0];
steps[2] = [-368, 0];
steps[3] = [-578, 0];
steps[4] = [-368, 0];
steps[5] = [-868, -93];
steps[6] = [-368, 0];
steps[7] = [-868, 84];
steps[8] = [-368, 0];
steps[9] = [-868, 0];
steps[10] = [-368, 0];
target = 0;
}
onClipEvent (enterFrame) {
if (this.morto == false) {
targX = steps[target][0];
targY = steps[target][1];
stepX = Math.floor(targX - this._x) / 20;
stepY = Math.floor(targY - this._y) / 10;
this._y = this._y + stepY;
this._x = this._x + stepX;
disX = Math.abs(Math.floor(targX - this._x));
disY = Math.abs(Math.floor(targY - this._y));
if ((disX < 2) && (disY < 2)) {
if (bouncing == undefined) {
bouncing = false;
}
if (!pari(target)) {
target = target + 1;
bouncing = false;
} else if (bouncing == false) {
this.boss.gotoAndPlay("spara");
_root.sfondi.ordeLIV2.boss.ordapiccola._x = this._x;
_root.sfondi.ordeLIV2.boss.ordapiccola._y = this._y;
bouncing = true;
}
if (target >= 11) {
target = 0;
}
targX = steps[target][0];
targY = steps[target][1];
}
i = 0;
while (i < (_root.maxShots + 1)) {
if (this.hitTest(_root["sparo" + i]) && (energiatolta == false)) {
this.gotoAndPlay("hurt");
_root.energiaboss = _root.energiaboss - (2 * _root["sparo" + i].type);
energiatolta = true;
if ((_root.energiaboss <= 0) && (this.morto == false)) {
this.boss.gotoAndPlay("esplodi");
this.morto = true;
}
_root["sparo" + i].removeMovieClip();
} else {
energiatolta = false;
}
i++;
}
if (this.hitTest(_root.strega.hotspot) && (_root.strega.viva == true)) {
if (_root.shield == true) {
_root.strega.scudo.gotoAndPlay("off");
} else {
_root.strega.viva = false;
}
}
} else if (this.morto == true) {
if ((finelivello == undefined) || (finelivello == false)) {
_root.gotoAndPlay("end_level");
finelivello = true;
}
}
}
Instance of Symbol 323 MovieClip "ordapiccola" in Symbol 325 MovieClip Frame 10
onClipEvent (load) {
rate = 20;
}
Instance of Symbol 232 MovieClip in Symbol 325 MovieClip Frame 10
onClipEvent (load) {
_root.energiaboss = 100;
}
onClipEvent (enterFrame) {
if (this._xscale != _root.energiaboss) {
this._xscale = this._xscale - 0.5;
}
if (_root.energiaboss <= 0) {
this._xscale = 0;
}
}
Symbol 326 MovieClip Frame 1
stop();
Instance of Symbol 234 MovieClip "ordeLIV1" in Symbol 326 MovieClip Frame 1
onClipEvent (load) {
ordapartita = false;
_root.completata = false;
i = 1;
}
onClipEvent (enterFrame) {
if (_root.strega.viva == true) {
if (_root.completata == true) {
this.play();
i++;
_root.completata = false;
}
}
}
Symbol 326 MovieClip Frame 2
stop();
Instance of Symbol 291 MovieClip "ordeLIV2" in Symbol 326 MovieClip Frame 2
onClipEvent (load) {
ordapartita = false;
_root.completata = false;
i = 1;
}
onClipEvent (enterFrame) {
if (_root.strega.viva == true) {
if (_root.completata == true) {
this.play();
i++;
_root.completata = false;
}
}
}
Symbol 326 MovieClip Frame 3
stop();
Instance of Symbol 325 MovieClip "ordeLIV3" in Symbol 326 MovieClip Frame 3
onClipEvent (load) {
ordapartita = false;
_root.completata = false;
i = 1;
}
onClipEvent (enterFrame) {
if (_root.strega.viva == true) {
if (_root.completata == true) {
this.play();
i++;
_root.completata = false;
}
}
}
Symbol 339 Button
on (release) {
_root.reallevel = _root.reallevel + 1;
if ((_root.reallevel % 3) != 0) {
_root.level = _root.reallevel % 3;
} else {
_root.level = 3;
}
trace(_root.reallevel % 3);
_root.offset = 0;
_root.gotoAndPlay("game");
}
Symbol 340 MovieClip Frame 1
stop();
Symbol 383 Button
on (release) {
trace(_root.name);
trace(_root.score);
if (_root.playername != "") {
if (_root.score != 0) {
sendVar = new LoadVars();
sendVar.key = "pumpkin";
sendVar.action = "a";
sendVar.nm = _root.playername;
sendVar.sc = _root.score;
sendVar.onLoad = function () {
_root.gameover.scoretable.fill();
};
sendVar.sendAndLoad("http://www.naive.it/hss/scores.php", sendVar, "POST");
this.play();
} else {
this.play();
}
} else {
noname.gotoAndPlay("noname");
}
}
Symbol 386 MovieClip Frame 1
stop();
Symbol 386 MovieClip Frame 30
gotoAndPlay (1);
Symbol 386 MovieClip Frame 60
gotoAndPlay (1);
Symbol 388 Button
on (release) {
_root.started = false;
_root.gotoAndPlay("home");
}
Symbol 389 MovieClip Frame 1
_root.playername = "";
scoretable._visible = false;
Instance of Symbol 373 MovieClip "scoretable" in Symbol 389 MovieClip Frame 1
onClipEvent (load) {
function fill() {
myVar = new LoadVars();
myVar.key = "pumpkin";
myVar.action = "v";
myVar.view_type = "flash";
myVar.onLoad = function () {
trace("ok");
for (var prop in this) {
_root.gameover.scoretable[prop] = this[prop];
}
};
myVar.sendAndLoad("http://www.naive.it/hss/scores.php", _root.gameover.scoretable.myVar, "POST");
}
function sendscore(name, score) {
trace((name + " :: ") + score);
}
fill();
}
Symbol 389 MovieClip Frame 25
stop();
Symbol 389 MovieClip Frame 28
scoretable._visible = true;
Symbol 389 MovieClip Frame 40
stop();
Instance of Symbol 373 MovieClip "scoretable" in Symbol 389 MovieClip Frame 40
onClipEvent (load) {
function fill() {
myVar = new LoadVars();
myVar.key = "pumpkin";
myVar.action = "v";
myVar.view_type = "flash";
myVar.onLoad = function () {
trace("ok");
for (var prop in this) {
_root.gameover.scoretable[prop] = this[prop];
}
};
myVar.sendAndLoad("http://www.naive.it/hss/scores.php", _root.gameover.scoretable.myVar, "POST");
}
function sendscore(name, score) {
trace((name + " :: ") + score);
}
fill();
}
Symbol 389 MovieClip Frame 57
_root.started = false;
_root.gotoAndPlay("home");