Frame 1
totali = _root.getBytesTotal();
caricati = _root.getBytesLoaded();
rate = (100 / totali) * caricati;
_root.preloader.barra._yscale = rate;
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 >= 100) {
_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 = 46;
_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 97 MovieClip "sfondi" in Frame 37
onClipEvent (load) {
this.gotoAndPlay(_root.level);
}
onClipEvent (enterFrame) {
_root.var4 = _root.offset;
}
Instance of Symbol 100 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 106 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 108 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 111 MovieClip "littlestar" in Frame 37
onClipEvent (enterFrame) {
this._x = this._x - 7;
if (this._x < 10) {
this.removeMovieClip();
}
}
Instance of Symbol 127 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 134 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 327 MovieClip in Frame 55
onClipEvent (load) {
this.gotoAndPlay(_root.level);
this["ordeLIV" + _root.level].gotoAndPlay(_root.offset);
}
Instance of Symbol 164 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 = 1;
_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 = 15;
_root.strega.viva = true;
lastTime = getTimer();
ordesparite = false;
}
onClipEvent (enterFrame) {
if (_root.shotCharging == true) {
partTime = Math.round((getTimer() - _root.shotStart) / 10);
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) > 12) {
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) / 10);
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 + 30)) || (oldshot == undefined)) {
shoot(type);
oldshot = getTimer();
}
};
}
Frame 56
stop();
Instance of Symbol 97 MovieClip "sfondi" in Frame 56
onClipEvent (load) {
this.gotoAndPlay(_root.level);
}
onClipEvent (enterFrame) {
_root.var4 = _root.offset;
}
Instance of Symbol 100 MovieClip "bonusText" in Frame 56
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 106 MovieClip "bonusIcon" in Frame 56
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 108 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 111 MovieClip "littlestar" in Frame 56
onClipEvent (enterFrame) {
this._x = this._x - 7;
if (this._x < 10) {
this.removeMovieClip();
}
}
Instance of Symbol 127 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 134 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();
_root.playername = "";
_root.scoretable.filename = "scores/pumpkin.sco";
_root.scoretable.scoresize = 10;
_root.scoretable.action = "VIEW";
_root.scoretable.viewtype = "FLASH";
_root.scoretable.loadVariables("http://www.naive.it/pumpkin/scores.php", "GET");
stop();
Instance of Symbol 379 MovieClip "scoretable" in Frame 57
onClipEvent (load) {
}
Symbol 25 Button
on (release) {
}
Symbol 29 Button
on (release) {
_root.play();
}
Symbol 54 Button
on (release) {
_root.gotoAndPlay("prep");
}
Symbol 72 MovieClip Frame 483
gotoAndPlay (150);
Symbol 76 MovieClip Frame 483
gotoAndPlay (150);
Symbol 80 MovieClip Frame 1
gotoAndPlay (300);
Symbol 80 MovieClip Frame 553
gotoAndPlay (2);
Symbol 86 MovieClip Frame 1
gotoAndPlay (130);
Symbol 86 MovieClip Frame 182
gotoAndPlay (2);
Symbol 97 MovieClip Frame 1
stop();
Symbol 97 MovieClip Frame 2
stop();
Symbol 97 MovieClip Frame 3
stop();
Symbol 100 MovieClip Frame 1
this._visible = false;
stop();
Symbol 100 MovieClip Frame 2
tbaBonus = this.bonus.text;
_root.score = _root.score + Number(tbaBonus);
this._visible = true;
Symbol 106 MovieClip Frame 1
stop();
Symbol 106 MovieClip Frame 2
stop();
Symbol 106 MovieClip Frame 3
stop();
Symbol 106 MovieClip Frame 4
stop();
Symbol 111 MovieClip Frame 15
this.removeMovieClip();
Symbol 127 MovieClip Frame 1
stop();
Symbol 127 MovieClip Frame 2
stop();
Symbol 127 MovieClip Frame 3
stop();
Symbol 127 MovieClip Frame 4
stop();
Symbol 127 MovieClip Frame 5
stop();
Symbol 127 MovieClip Frame 6
stop();
Symbol 134 MovieClip Frame 1
stop();
Symbol 134 MovieClip Frame 2
stop();
Symbol 134 MovieClip Frame 3
stop();
Symbol 134 MovieClip Frame 4
stop();
Symbol 134 MovieClip Frame 5
stop();
Symbol 138 MovieClip Frame 1
_root.shield = false;
stop();
Symbol 138 MovieClip Frame 2
_root.shield = true;
Symbol 138 MovieClip Frame 15
stop();
Symbol 138 MovieClip Frame 30
this.gotoAndStop(1);
Symbol 143 MovieClip Frame 12
gotoAndPlay (1);
Symbol 143 MovieClip Frame 24
gotoAndPlay (13);
Symbol 145 MovieClip Frame 1
stop();
Symbol 145 MovieClip Frame 23
gotoAndPlay (1);
Symbol 164 MovieClip Frame 1
stomorendo = false;
stop();
Instance of Symbol 140 MovieClip "hotspot" in Symbol 164 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 143 MovieClip "carica" in Symbol 164 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if ((_root.shotCharging == false) && (this._visible == true)) {
this._visible = false;
}
}
Symbol 164 MovieClip Frame 6
mid_animation = true;
stop();
Symbol 164 MovieClip Frame 10
mid_animation = false;
gotoAndPlay (1);
Symbol 164 MovieClip Frame 16
mid_animation = true;
stop();
Symbol 164 MovieClip Frame 21
mid_animation = false;
gotoAndPlay (1);
Symbol 164 MovieClip Frame 22
stomorendo = true;
Symbol 164 MovieClip Frame 47
_root.lives = _root.lives - 1;
_root.gotoAndPlay("game");
stop();
Symbol 177 MovieClip Frame 34
gotoAndPlay (1);
Symbol 177 MovieClip Frame 35
this.esplosa = true;
Symbol 177 MovieClip Frame 48
this._visible = false;
this.stop();
Instance of Symbol 179 MovieClip "guida" in Symbol 180 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 180 MovieClip Frame 150
_root.completata = true;
stop();
Instance of Symbol 179 MovieClip "guida" in Symbol 181 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 181 MovieClip Frame 150
_root.completata = true;
stop();
Symbol 188 MovieClip Frame 10
gotoAndPlay (1);
Symbol 188 MovieClip Frame 24
this._visible = false;
this.stop();
Instance of Symbol 188 MovieClip "pipis1" in Symbol 189 MovieClip Frame 1
onClipEvent (load) {
step = 5;
limUP = 50;
limDown = 250;
}
onClipEvent (enterFrame) {
}
Instance of Symbol 188 MovieClip "pipis2" in Symbol 189 MovieClip Frame 1
onClipEvent (load) {
step = 5;
limUP = 50;
limDown = 250;
}
onClipEvent (enterFrame) {
}
Instance of Symbol 188 MovieClip "pipis3" in Symbol 189 MovieClip Frame 1
onClipEvent (load) {
step = 5;
limUP = 50;
limDown = 250;
}
onClipEvent (enterFrame) {
}
Instance of Symbol 188 MovieClip "pipis4" in Symbol 189 MovieClip Frame 1
onClipEvent (load) {
step = 5;
limUP = 50;
limDown = 250;
}
onClipEvent (enterFrame) {
}
Instance of Symbol 188 MovieClip "pipis5" in Symbol 189 MovieClip Frame 1
onClipEvent (load) {
step = 5;
limUP = 50;
limDown = 250;
}
onClipEvent (enterFrame) {
}
Instance of Symbol 179 MovieClip "guida" in Symbol 189 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 189 MovieClip Frame 180
_root.completata = true;
stop();
Instance of Symbol 188 MovieClip "pipis1" in Symbol 190 MovieClip Frame 1
onClipEvent (load) {
step = 5;
limUP = 50;
limDown = 250;
}
onClipEvent (enterFrame) {
}
Instance of Symbol 188 MovieClip "pipis2" in Symbol 190 MovieClip Frame 1
onClipEvent (load) {
step = 5;
limUP = 50;
limDown = 250;
}
onClipEvent (enterFrame) {
}
Instance of Symbol 188 MovieClip "pipis3" in Symbol 190 MovieClip Frame 1
onClipEvent (load) {
step = 5;
limUP = 50;
limDown = 250;
}
onClipEvent (enterFrame) {
}
Instance of Symbol 188 MovieClip "pipis4" in Symbol 190 MovieClip Frame 1
onClipEvent (load) {
step = 5;
limUP = 50;
limDown = 250;
}
onClipEvent (enterFrame) {
}
Instance of Symbol 188 MovieClip "pipis5" in Symbol 190 MovieClip Frame 1
onClipEvent (load) {
step = 5;
limUP = 50;
limDown = 250;
}
onClipEvent (enterFrame) {
}
Instance of Symbol 179 MovieClip "guida" in Symbol 190 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 190 MovieClip Frame 180
_root.completata = true;
stop();
Symbol 203 MovieClip Frame 28
gotoAndPlay (1);
Symbol 203 MovieClip Frame 42
this._visible = false;
Instance of Symbol 179 MovieClip "guida" in Symbol 204 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 204 MovieClip Frame 150
_root.completata = true;
stop();
Instance of Symbol 179 MovieClip "guida" in Symbol 205 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 205 MovieClip Frame 150
_root.completata = true;
stop();
Symbol 217 MovieClip Frame 40
gotoAndPlay (1);
Symbol 217 MovieClip Frame 54
this._visible = false;
Instance of Symbol 179 MovieClip "guida" in Symbol 218 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
raggio = 100;
currX = _x;
currY = _y;
}
Symbol 218 MovieClip Frame 150
_root.completata = true;
stop();
Instance of Symbol 179 MovieClip "guida" in Symbol 218 MovieClip Frame 150
onClipEvent (load) {
this._visible = true;
raggio = 100;
currX = _x;
currY = _y;
}
Symbol 219 MovieClip Frame 1
stop();
Instance of Symbol 177 MovieClip "boss5" in Symbol 219 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 177 MovieClip "boss4" in Symbol 219 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 177 MovieClip "boss5" in Symbol 219 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 177 MovieClip "boss3" in Symbol 219 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 177 MovieClip "boss2" in Symbol 219 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 219 MovieClip Frame 93
gotoAndStop (1);
Symbol 230 MovieClip Frame 1
stop();
Symbol 230 MovieClip Frame 20
_parent._parent.ordapiccola.play();
Symbol 230 MovieClip Frame 51
_parent.target = _parent.target + 1;
gotoAndPlay (1);
Symbol 230 MovieClip Frame 65
stop();
Symbol 231 MovieClip Frame 1
stop();
Symbol 231 MovieClip Frame 2
_root.score = _root.score + 20;
Instance of Symbol 231 MovieClip "boss1" in Symbol 232 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 234 MovieClip Frame 1
stop();
Symbol 236 MovieClip Frame 1
_root.ordaFinale = false;
this.bonus._visible = true;
Symbol 236 MovieClip Frame 2
_root.offset = 2;
stop();
Instance of Symbol 180 MovieClip in Symbol 236 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 236 MovieClip Frame 3
stop();
Instance of Symbol 181 MovieClip "orda1" in Symbol 236 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 236 MovieClip Frame 4
_root.offset = 4;
stop();
Instance of Symbol 189 MovieClip in Symbol 236 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 236 MovieClip Frame 5
stop();
Instance of Symbol 190 MovieClip in Symbol 236 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 236 MovieClip Frame 6
_root.offset = 6;
stop();
Instance of Symbol 203 MovieClip "teschio1" in Symbol 236 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 203 MovieClip "teschio2" in Symbol 236 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 236 MovieClip Frame 7
_root.offset = 7;
stop();
Instance of Symbol 204 MovieClip in Symbol 236 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 236 MovieClip Frame 8
stop();
Instance of Symbol 205 MovieClip in Symbol 236 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 236 MovieClip Frame 9
_root.offset = 9;
stop();
Instance of Symbol 218 MovieClip in Symbol 236 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 236 MovieClip Frame 10
_root.ordaFinale = true;
stop();
Instance of Symbol 234 MovieClip in Symbol 236 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 242 MovieClip Frame 34
gotoAndPlay (1);
Symbol 242 MovieClip Frame 35
this.esplosa = true;
Symbol 242 MovieClip Frame 48
this._visible = false;
this.stop();
Instance of Symbol 179 MovieClip "guida" in Symbol 243 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 243 MovieClip Frame 133
_root.completata = true;
stop();
Instance of Symbol 179 MovieClip "guida" in Symbol 245 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 245 MovieClip Frame 134
_root.completata = true;
stop();
Symbol 249 MovieClip Frame 28
gotoAndPlay (1);
Symbol 249 MovieClip Frame 29
this.esplosa = true;
Symbol 249 MovieClip Frame 42
this._visible = false;
this.stop();
Instance of Symbol 179 MovieClip "guida" in Symbol 250 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 250 MovieClip Frame 129
_root.completata = true;
stop();
Instance of Symbol 179 MovieClip "guida" in Symbol 251 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 251 MovieClip Frame 128
_root.completata = true;
stop();
Instance of Symbol 179 MovieClip "guida" in Symbol 252 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 252 MovieClip Frame 139
_root.completata = true;
stop();
Symbol 264 MovieClip Frame 50
gotoAndPlay (1);
Symbol 264 MovieClip Frame 51
this.esplosa = true;
Symbol 264 MovieClip Frame 64
this._visible = false;
this.stop();
Instance of Symbol 179 MovieClip "guida" in Symbol 265 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 265 MovieClip Frame 120
_root.completata = true;
stop();
Instance of Symbol 179 MovieClip "guida" in Symbol 266 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 266 MovieClip Frame 120
_root.completata = true;
stop();
Symbol 277 MovieClip Frame 1
this._visible = true;
Symbol 277 MovieClip Frame 24
gotoAndPlay (1);
Symbol 277 MovieClip Frame 25
this.esplosa = true;
Symbol 277 MovieClip Frame 38
this.stop();
Symbol 278 MovieClip Frame 1
t1 = false;
t2 = false;
t3 = false;
t4 = false;
trace("ordapiccolastarted");
stop();
Symbol 278 MovieClip Frame 2
stop();
Instance of Symbol 277 MovieClip in Symbol 278 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 278 MovieClip Frame 3
stop();
Instance of Symbol 277 MovieClip in Symbol 278 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 278 MovieClip Frame 4
stop();
Instance of Symbol 277 MovieClip in Symbol 278 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 278 MovieClip Frame 5
stop();
Instance of Symbol 277 MovieClip in Symbol 278 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 278 MovieClip Frame 6
_parent.flameboss.target = _parent.flameboss.target + 1;
gotoAndPlay (1);
Symbol 288 MovieClip Frame 20
gotoAndPlay (1);
Symbol 288 MovieClip Frame 28
_parent._parent.ordapiccola.gotoAndPlay(2);
Symbol 288 MovieClip Frame 35
gotoAndPlay (1);
Symbol 288 MovieClip Frame 49
stop();
Symbol 289 MovieClip Frame 1
stop();
Symbol 289 MovieClip Frame 15
gotoAndPlay (1);
Instance of Symbol 278 MovieClip "ordapiccola" in Symbol 290 MovieClip Frame 1
onClipEvent (load) {
rate = 20;
}
Instance of Symbol 289 MovieClip "flameboss" in Symbol 290 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 292 MovieClip Frame 1
_root.ordaFinale = false;
this.bonus._visible = true;
Symbol 292 MovieClip Frame 2
_root.offset = 2;
stop();
Instance of Symbol 243 MovieClip in Symbol 292 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 292 MovieClip Frame 3
stop();
Instance of Symbol 245 MovieClip "orda1" in Symbol 292 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 292 MovieClip Frame 4
_root.offset = 4;
stop();
Instance of Symbol 250 MovieClip in Symbol 292 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 292 MovieClip Frame 5
stop();
Instance of Symbol 251 MovieClip in Symbol 292 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 292 MovieClip Frame 6
stop();
Instance of Symbol 252 MovieClip in Symbol 292 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 292 MovieClip Frame 7
_root.offset = 7;
stop();
Instance of Symbol 265 MovieClip in Symbol 292 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 292 MovieClip Frame 8
stop();
Instance of Symbol 266 MovieClip in Symbol 292 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 292 MovieClip Frame 9
_root.offset = 9;
stop();
Instance of Symbol 277 MovieClip "fire1" in Symbol 292 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;
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 277 MovieClip "fire2" in Symbol 292 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;
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++;
}
}
Symbol 292 MovieClip Frame 10
_root.ordaFinale = true;
stop();
Instance of Symbol 234 MovieClip in Symbol 292 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 299 MovieClip Frame 19
gotoAndPlay (1);
Symbol 299 MovieClip Frame 20
this.esplosa = true;
Symbol 299 MovieClip Frame 33
this._visible = false;
this.stop();
Instance of Symbol 179 MovieClip "guida" in Symbol 300 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 300 MovieClip Frame 130
_root.completata = true;
stop();
Instance of Symbol 179 MovieClip "guida" in Symbol 301 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 301 MovieClip Frame 150
_root.completata = true;
stop();
Symbol 305 MovieClip Frame 28
gotoAndPlay (1);
Symbol 305 MovieClip Frame 29
this.esplosa = true;
Symbol 305 MovieClip Frame 42
this._visible = false;
this.stop();
Instance of Symbol 179 MovieClip "guida" in Symbol 306 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 306 MovieClip Frame 164
_root.completata = true;
stop();
Instance of Symbol 179 MovieClip "guida" in Symbol 307 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 307 MovieClip Frame 168
_root.completata = true;
stop();
Instance of Symbol 179 MovieClip "guida" in Symbol 308 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 308 MovieClip Frame 171
_root.completata = true;
stop();
Symbol 311 MovieClip Frame 19
gotoAndPlay (1);
Symbol 311 MovieClip Frame 20
this.esplosa = true;
Symbol 311 MovieClip Frame 33
this._visible = false;
gotoAndPlay (1);
Symbol 322 MovieClip Frame 20
gotoAndPlay (1);
Symbol 322 MovieClip Frame 28
_parent._parent.ordapiccola.gotoAndPlay(2);
Symbol 322 MovieClip Frame 35
gotoAndPlay (1);
Symbol 322 MovieClip Frame 49
stop();
Symbol 323 MovieClip Frame 1
stop();
Symbol 323 MovieClip Frame 15
gotoAndPlay (1);
Symbol 324 MovieClip Frame 1
t1 = false;
t2 = false;
t3 = false;
t4 = false;
stop();
Symbol 324 MovieClip Frame 2
stop();
Instance of Symbol 299 MovieClip in Symbol 324 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 324 MovieClip Frame 3
stop();
Instance of Symbol 299 MovieClip in Symbol 324 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 324 MovieClip Frame 4
stop();
Instance of Symbol 299 MovieClip in Symbol 324 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 324 MovieClip Frame 5
stop();
Instance of Symbol 299 MovieClip in Symbol 324 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 324 MovieClip Frame 6
_parent.batboss.target = _parent.batboss.target + 1;
gotoAndPlay (1);
Symbol 326 MovieClip Frame 1
_root.ordaFinale = false;
this.bonus._visible = true;
Symbol 326 MovieClip Frame 2
_root.offset = 2;
stop();
Instance of Symbol 300 MovieClip in Symbol 326 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 326 MovieClip Frame 3
stop();
Instance of Symbol 301 MovieClip "orda1" in Symbol 326 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 326 MovieClip Frame 4
_root.offset = 4;
stop();
Instance of Symbol 306 MovieClip in Symbol 326 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 326 MovieClip Frame 5
stop();
Instance of Symbol 307 MovieClip in Symbol 326 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 326 MovieClip Frame 6
stop();
Instance of Symbol 308 MovieClip in Symbol 326 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 326 MovieClip Frame 7
_root.offset = 7;
stop();
Instance of Symbol 311 MovieClip "mano1" in Symbol 326 MovieClip Frame 7
onClipEvent (load) {
xRate = -3;
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;
}
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 311 MovieClip "mano2" in Symbol 326 MovieClip Frame 7
onClipEvent (load) {
xRate = -3;
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;
}
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 311 MovieClip "mano3" in Symbol 326 MovieClip Frame 7
onClipEvent (load) {
xRate = -3;
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;
}
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 311 MovieClip "mano4" in Symbol 326 MovieClip Frame 7
onClipEvent (load) {
xRate = -3;
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;
}
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 326 MovieClip Frame 8
stop();
Symbol 326 MovieClip Frame 9
stop();
Symbol 326 MovieClip Frame 10
_root.ordaFinale = true;
stop();
Instance of Symbol 323 MovieClip "batboss" in Symbol 326 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 324 MovieClip "ordapiccola" in Symbol 326 MovieClip Frame 10
onClipEvent (load) {
rate = 20;
}
Instance of Symbol 234 MovieClip in Symbol 326 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 327 MovieClip Frame 1
stop();
Instance of Symbol 236 MovieClip "ordeLIV1" in Symbol 327 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 327 MovieClip Frame 2
stop();
Instance of Symbol 292 MovieClip "ordeLIV2" in Symbol 327 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 327 MovieClip Frame 3
stop();
Instance of Symbol 326 MovieClip "ordeLIV3" in Symbol 327 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 340 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 341 MovieClip Frame 1
stop();
Symbol 366 Button
on (release) {
if (_root.playername != "") {
if (_root.score != 0) {
_root.scoretable.filename = "scores/pumpkin.sco";
_root.scoretable.scoresize = 10;
_root.scoretable.action = "INSERT";
_root.scoretable.viewtype = "FLASH";
_root.scoretable.winname = _root.playername;
_root.scoretable.winscore = _root.score;
_root.scoretable.loadVariables("http://www.naive.it/pumpkin/scores.php", "GET");
_root.scoretable.filename = "scores/pumpkin.sco";
_root.scoretable.scoresize = 10;
_root.scoretable.action = "VIEW";
_root.scoretable.viewtype = "FLASH";
_root.scoretable.loadVariables("http://www.naive.it/pumpkin/scores.php", "GET");
} else {
noname.gotoAndPlay("notenough");
}
} else {
noname.gotoAndPlay("noname");
}
}
Symbol 375 Button
on (release) {
_root.started = false;
_root.gotoAndPlay("home");
}
Symbol 378 MovieClip Frame 1
stop();
Symbol 378 MovieClip Frame 30
gotoAndPlay (1);
Symbol 378 MovieClip Frame 60
gotoAndPlay (1);
Symbol 379 MovieClip Frame 1
stop();