Frame 117
config_nave = 2;
numenemigos = 3;
stop();
Frame 118
play();
Frame 163
stop();
score = 0;
vida = 50;
_root.velcidadenemigo = 2;
_root.barra.gotoAndStop(vida);
_root.disparo.gotoAndStop(_root.config_disparo);
i = 2;
while (i <= numenemigos) {
enemigo1.duplicateMovieClip("enemigo" + i, i);
i++;
}
Instance of Symbol 31 MovieClip in Frame 163
onClipEvent (load) {
fondo1.duplicateMovieClip("fondo2", 1);
fondo2._y = -fondo1._height;
posinicial = this._y;
fondovelocidad = 10;
}
onClipEvent (enterFrame) {
this._y = this._y + fondovelocidad;
if (this._y >= fondo1._height) {
this._y = posinicial;
}
}
Instance of Symbol 37 MovieClip "enemigo1" in Frame 163
onClipEvent (load) {
function restart() {
this._x = random(450) + 20;
this._y = random(-80);
velocidadenemigo = random(6) + _root.velcidadenemigo;
}
restart();
}
onClipEvent (enterFrame) {
this._y = this._y + velocidadenemigo;
if (this.hitTest(_root.nave)) {
this.gotoAndPlay(2);
_root.vida = _root.vida - 1;
if (_root.vida <= 2) {
trace("PERDISTE");
_root.nextFrame();
} else {
_root.barra.gotoAndStop(_root.vida - 1);
}
}
if (this._y >= 400) {
if (this._currentframe == 1) {
_root.score = _root.score - 1;
}
restart();
this.gotoAndStop(1);
}
}
Instance of Symbol 46 MovieClip in Frame 163
onClipEvent (load) {
function restart() {
this._x = random(450) + 20;
this._y = random(-580) - 1000;
itemvelocidad = random(9) + 2;
}
restart();
}
onClipEvent (enterFrame) {
this._y = this._y + itemvelocidad;
if (this.hitTest(_root.nave)) {
this.gotoAndPlay(2);
if (_root.vida <= 5) {
_root.vida = _root.vida + 1;
_root.barra.gotoAndStop(_root.vida);
}
}
if (this._y >= 400) {
restart();
this.gotoAndStop(1);
}
}
Instance of Symbol 48 MovieClip in Frame 163
onClipEvent (load) {
function restart() {
this._x = random(450) + 20;
this._y = random(-580) - 1000;
itemvelocidad = random(9) + 2;
}
restart();
}
onClipEvent (enterFrame) {
this._y = this._y + itemvelocidad;
if (this.hitTest(_root.nave)) {
this.gotoAndPlay(2);
_root.config_disparo = 2;
}
if (this._y >= 400) {
restart();
this.gotoAndStop(1);
}
}
Instance of Symbol 50 MovieClip in Frame 163
onClipEvent (load) {
function restart() {
this._x = random(450) + 20;
this._y = random(-580) - 1000;
itemvelocidad = random(9) + 2;
}
restart();
}
onClipEvent (enterFrame) {
this._y = this._y + itemvelocidad;
if (this.hitTest(_root.nave)) {
this.gotoAndPlay(2);
_root.config_disparo = 3;
}
if (this._y >= 400) {
restart();
this.gotoAndStop(1);
}
}
Instance of Symbol 52 MovieClip in Frame 163
onClipEvent (load) {
function restart() {
this._x = random(450) + 20;
this._y = random(-580) - 1000;
itemvelocidad = random(9) + 2;
}
restart();
}
onClipEvent (enterFrame) {
this._y = this._y + itemvelocidad;
if (this.hitTest(_root.nave)) {
this.gotoAndPlay(2);
_root.config_disparo = 1;
}
if (this._y >= 400) {
restart();
this.gotoAndStop(1);
}
}
Instance of Symbol 63 MovieClip "nave" in Frame 163
onClipEvent (load) {
numerobala = 1;
velocidad = 10;
_root.disparo._visible = false;
}
onClipEvent (enterFrame) {
est = _root.config_nave;
if (Key.isDown(38)) {
this._y = this._y - velocidad;
} else if (Key.isDown(40)) {
this._y = this._y + velocidad;
}
if (Key.isDown(37)) {
this._x = this._x - velocidad;
_root.nave.gotoAndStop("izq" + est);
} else {
_root.nave.gotoAndStop("normal" + est);
}
if (Key.isDown(39)) {
this._x = this._x + velocidad;
_root.nave.gotoAndStop("der" + est);
}
if (this.hitTest(_root.pared)) {
this._y = 30;
}
if (this.hitTest(_root.pared2)) {
this._x = 485;
}
if (this.hitTest(_root.pared3)) {
this._y = 320;
}
if (this.hitTest(_root.pared4)) {
this._x = 60;
}
if (Key.isDown(32)) {
numerobala++;
_root.disparo.duplicateMovieClip("disparo" + numerobala, numerobala + 100);
_root["disparo" + numerobala].gotoAndStop(_root.config_disparo);
_root.numdmc = "disparo" + numerobala;
}
}
Instance of Symbol 74 MovieClip "disparo" in Frame 163
onClipEvent (load) {
this._x = _root.nave._x;
this._y = _root.nave._y - 1;
velocidadbala = 10;
}
onClipEvent (enterFrame) {
this._y = this._y - velocidadbala;
i = 1;
while (i <= _root.numenemigos) {
if (this.hitTest(_root["enemigo" + i])) {
_root["enemigo" + i].golpe = _root["enemigo" + i].golpe + 1;
if (_root["enemigo" + i].golpe == 20) {
_root["enemigo" + i].gotoAndPlay(2);
}
}
i++;
}
if (this._y <= 0) {
this.removeMovieClip();
}
}
Frame 164
stopAllSounds();
stop();
Symbol 10 MovieClip Frame 423
stop();
Symbol 13 MovieClip Frame 425
stop();
Symbol 19 Button
on (release) {
_root.config_nave = 1;
}
Symbol 20 Button
on (release) {
_root.config_nave = 2;
}
Symbol 21 Button
on (release) {
_root.config_nave = 3;
}
Symbol 22 Button
on (release) {
_root.nextFrame();
}
Symbol 37 MovieClip Frame 1
stop();
var golpe = 0;
Symbol 37 MovieClip Frame 13
stop();
_root.score = _root.score + 5;
if ((_root.score >= 5) && (_root.score <= 80)) {
_root.velcidadenemigo = 5;
}
if (_root.score >= 81) {
_root.velcidadenemigo = 9;
}
Symbol 44 MovieClip Frame 1
stop();
Symbol 44 MovieClip Frame 2
_root.nave.velocidad = 3;
Symbol 44 MovieClip Frame 3
_root.nave.velocidad = 5;
Symbol 44 MovieClip Frame 4
_root.nave.velocidad = 8;
Symbol 44 MovieClip Frame 5
_root.nave.velocidad = 10;
Symbol 44 MovieClip Frame 6
stop();
Symbol 44 MovieClip Frame 7
_root.nave.velocidad = 3;
Symbol 44 MovieClip Frame 8
_root.nave.velocidad = 5;
Symbol 44 MovieClip Frame 9
_root.nave.velocidad = 8;
Symbol 44 MovieClip Frame 10
_root.nave.velocidad = 10;
Symbol 44 MovieClip Frame 11
stop();
Symbol 44 MovieClip Frame 12
_root.nave.velocidad = 3;
Symbol 44 MovieClip Frame 13
_root.nave.velocidad = 5;
Symbol 44 MovieClip Frame 14
_root.nave.velocidad = 8;
Symbol 44 MovieClip Frame 15
_root.nave.velocidad = 10;
Symbol 44 MovieClip Frame 16
stop();
Symbol 44 MovieClip Frame 17
_root.nave.velocidad = 3;
Symbol 44 MovieClip Frame 18
_root.nave.velocidad = 5;
Symbol 44 MovieClip Frame 19
_root.nave.velocidad = 8;
Symbol 44 MovieClip Frame 20
_root.nave.velocidad = 10;
Symbol 44 MovieClip Frame 21
stop();
Symbol 44 MovieClip Frame 22
_root.nave.velocidad = 3;
Symbol 44 MovieClip Frame 23
_root.nave.velocidad = 5;
Symbol 44 MovieClip Frame 24
_root.nave.velocidad = 8;
Symbol 44 MovieClip Frame 25
_root.nave.velocidad = 10;
Symbol 44 MovieClip Frame 26
stop();
Symbol 44 MovieClip Frame 27
_root.nave.velocidad = 3;
Symbol 44 MovieClip Frame 28
_root.nave.velocidad = 5;
Symbol 44 MovieClip Frame 29
_root.nave.velocidad = 8;
Symbol 44 MovieClip Frame 30
_root.nave.velocidad = 10;
Symbol 44 MovieClip Frame 31
stop();
Symbol 44 MovieClip Frame 32
_root.nave.velocidad = 3;
Symbol 44 MovieClip Frame 33
_root.nave.velocidad = 5;
Symbol 44 MovieClip Frame 34
_root.nave.velocidad = 8;
Symbol 44 MovieClip Frame 35
_root.nave.velocidad = 10;
Symbol 44 MovieClip Frame 36
stop();
Symbol 44 MovieClip Frame 37
_root.nave.velocidad = 3;
Symbol 44 MovieClip Frame 38
_root.nave.velocidad = 5;
Symbol 44 MovieClip Frame 39
_root.nave.velocidad = 8;
Symbol 44 MovieClip Frame 40
_root.nave.velocidad = 10;
Symbol 44 MovieClip Frame 41
stop();
Symbol 44 MovieClip Frame 42
_root.nave.velocidad = 3;
Symbol 44 MovieClip Frame 43
_root.nave.velocidad = 5;
Symbol 44 MovieClip Frame 44
_root.nave.velocidad = 8;
Symbol 44 MovieClip Frame 45
_root.nave.velocidad = 10;
Symbol 44 MovieClip Frame 46
stop();
Symbol 44 MovieClip Frame 47
_root.nave.velocidad = 3;
Symbol 44 MovieClip Frame 48
_root.nave.velocidad = 5;
Symbol 44 MovieClip Frame 49
_root.nave.velocidad = 8;
Symbol 44 MovieClip Frame 50
_root.nave.velocidad = 10;
Symbol 46 MovieClip Frame 1
stop();
Symbol 46 MovieClip Frame 5
stop();
Symbol 48 MovieClip Frame 1
stop();
Symbol 48 MovieClip Frame 5
stop();
Symbol 50 MovieClip Frame 1
stop();
Symbol 50 MovieClip Frame 5
stop();
Symbol 52 MovieClip Frame 1
stop();
Symbol 52 MovieClip Frame 5
stop();
Symbol 63 MovieClip Frame 1
stop();
Symbol 63 MovieClip Frame 15
stop();
Symbol 63 MovieClip Frame 29
stop();
Symbol 69 MovieClip Frame 1
stop();
Symbol 73 MovieClip Frame 35
stop();
Symbol 74 MovieClip Frame 1
stop();
Symbol 74 MovieClip Frame 2
stop();
Symbol 74 MovieClip Frame 3
stop();
Symbol 80 Button
on (release) {
_root.config_nave = 3;
}
Symbol 83 Button
on (release) {
_root.config_nave = 2;
}
Symbol 86 Button
on (release) {
_root.config_nave = 1;
}
Symbol 92 Button
on (release) {
gotoAndPlay ("start");
}