Frame 1
var pctLoaded = 0;
stop();
this.onEnterFrame = function () {
pctLoaded = Math.round((this.getBytesLoaded() / this.getBytesTotal()) * 100);
miloader._xscale = pctLoaded;
loadperc.text = pctLoaded + "%";
if (pctLoaded >= 100) {
gotoAndPlay (2);
}
};
Frame 2
var musicoff = 0;
_root.musicbut.nomusic._visible = false;
gotoAndPlay (3);
Frame 3
function tracking() {
myURL = "http://www.gamegarage.co.uk/scripts/";
url = myURL + "tracking.php";
lv = new LoadVars();
lv.game_id = _root.game_id;
lv.user_id = _root.user_id;
lv.sendAndLoad(url, lv, "POST");
}
function scoring() {
myURL = "http://www.gamegarage.co.uk/scripts/";
url = myURL + "score.php";
lv = new LoadVars();
lv.game_id = _root.game_id;
lv.user_id = _root.user_id;
lv.score = _root.lastscore;
lv.alg = ((_root.game_id + _root.user_id) + _root.lastscore) + "a83l9xj";
lv.sendAndLoad(url, lv, "POST");
}
stop();
stopAllSounds();
var lastscore = 0;
var levelup = 0;
var xmov = 0;
var xmov2 = 0;
var cusong = new Sound();
cusong.attachSound("menusong");
if (_root.musicoff == 0) {
_root.musicbut.nomusic._visible = false;
cusong.start(0, 10);
}
_root.startbtn.useHandCursor = true;
this.onEnterFrame = function () {
if (_root.startbtn.hitTest(_xmouse, _ymouse, true)) {
_root.startbtn.gotoAndStop(2);
} else {
_root.startbtn.gotoAndStop(1);
}
if (_root.howtobtn.hitTest(_xmouse, _ymouse, true)) {
_root.howtobtn.gotoAndStop(2);
} else {
_root.howtobtn.gotoAndStop(1);
}
if (_root.playmbtn1.hitTest(_xmouse, _ymouse, true)) {
_root.playmbtn1.gotoAndStop(2);
} else {
_root.playmbtn1.gotoAndStop(1);
}
if (_root.creditbtn.hitTest(_xmouse, _ymouse, true)) {
_root.creditbtn.gotoAndStop(2);
} else {
_root.creditbtn.gotoAndStop(1);
}
};
this.onMouseDown = function () {
if (_root.startbtn.hitTest(_xmouse, _ymouse, true)) {
cusong.stop();
_root.gotoAndStop(5);
}
if (_root.howtobtn.hitTest(_xmouse, _ymouse, true)) {
_root.gotoAndStop(30);
}
if (_root.creditbtn.hitTest(_xmouse, _ymouse, true)) {
_root.gotoAndStop(31);
}
if (_root.playmbtn1.hitTest(_xmouse, _ymouse, true)) {
getURL ("http://www.gamegarage.co.uk/", "_blank", "POST");
}
if (_root.musicbut.hitTest(_xmouse, _ymouse, true)) {
if (_root.musicbut.nomusic._visible == false) {
_root.musicbut.nomusic._visible = true;
_root.musicoff = 1;
cusong.stop();
} else {
cusong.start(0, 1000);
_root.musicbut.nomusic._visible = false;
_root.musicoff = 0;
}
}
};
Instance of Symbol 54 MovieClip "barra2" in Frame 3
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
this._y = this._y + 6;
this._x = this._x + -6;
}
if (this._y > 420) {
this._y = -200.1;
this._x = 745.1;
}
}
Instance of Symbol 106 MovieClip "barra1" in Frame 3
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
this._y = this._y + -5;
}
if (this._y < -300) {
this._y = 420;
}
}
Instance of Symbol 111 MovieClip "barra4" in Frame 3
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
this._x = this._x + -7;
}
if (this._x < -260) {
this._x = 660;
}
}
Instance of Symbol 116 MovieClip "barra5" in Frame 3
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
this._y = this._y + -6;
this._x = this._x + -6;
}
if (this._y < -220) {
this._y = 420;
this._x = 300;
}
}
Instance of Symbol 120 MovieClip "ds2" in Frame 3
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
_root.xmov2 = _root.xmov2 + 0.07;
this._y = this._y + (7 * Math.sin(_root.xmov2));
this._x = this._x + -3;
if (this._x < -20) {
this._x = 670;
}
}
}
Instance of Symbol 120 MovieClip "ds1" in Frame 3
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
_root.xmov = _root.xmov + 0.05;
this._x = this._x + (5 * Math.sin(_root.xmov));
this._y = this._y + -1;
if (this._y < -20) {
this._y = 410;
}
}
}
Frame 4
gotoAndStop (5);
Frame 5
stop();
tracking();
var lamusica = new Sound();
lamusica.attachSound("lamusic");
lamusica.setVolume(75);
lamusica.stop();
if (_root.musicoff == 0) {
_root.musicbut.nomusic._visible = false;
lamusica.start(0, 1000);
}
var coinsound = new Sound();
coinsound.attachSound("Reward");
var mitiro = new Sound();
mitiro.attachSound("tiro");
var mitirod = new Sound();
mitirod.attachSound("dshot");
var mitiroc = new Sound();
mitiroc.attachSound("cshot");
var levelsup = new Sound();
levelsup.attachSound("levels");
var fin = 0;
var xp1 = 63.5;
var lives = 0;
var score = 0;
var tiempo = 30;
var zx = 0;
var vis = 0;
var levelup = 0;
var lo = 0;
var lastscore = 0;
var levelpoints1 = 1000;
var livesbonus = 0;
var coins1 = 0;
var xc = 0;
var tbonus = 0;
var i = 0;
var cbonus = 0;
var b = 0;
var scoresum = 0;
var nivel = 1;
_root.bola._x = 18;
_root.bola._y = 328;
_root.bola.px = 18;
_root.bola.py = 53;
_root.bola.inmune._visible = false;
this.onEnterFrame = function () {
zx = zx + 1;
if (zx == 30) {
if (levelup == 0) {
zx = 0;
if (tiempo >= 1) {
tiempo = tiempo + -1;
_root.tiempotext.text = tiempo;
}
if (tiempo == 0) {
if (_root.fin == 0) {
_root.fin = 1;
_root.bola.activo = 0;
this.attachMovie("gameover", "gover", _root.getNextHighestDepth(), {_x:350, _y:200});
_root.lastscore = (_root.score + _root.coins1) - (_root.lives * 100);
_root.scoring();
}
}
}
}
if (_root.bola.inbola.hitTest(_root.barra1)) {
if (_root.bola.activo == 1) {
_root.bola._x = 25;
_root.bola._y = 335;
_root.bola.activo = 0;
_root.clickme._x = 41;
_root.clickme._y = 305;
_root.lives = _root.lives + 1;
}
}
if (_root.barra2.hitTest(_root.bola._x + (_root.bola._width / 2), _root.bola._y, true)) {
if (_root.bola.activo == 1) {
_root.bola._x = 25;
_root.bola._y = 335;
_root.bola.activo = 0;
_root.clickme._x = 41;
_root.clickme._y = 305;
_root.lives = _root.lives + 1;
}
}
if (_root.barra2.hitTest(_root.bola._x - (_root.bola._width / 2), _root.bola._y, true)) {
if (_root.bola.activo == 1) {
_root.bola._x = 25;
_root.bola._y = 335;
_root.bola.activo = 0;
_root.clickme._x = 41;
_root.clickme._y = 305;
_root.lives = _root.lives + 1;
}
}
if (_root.barra2.hitTest(_root.bola._x, _root.bola._y + (_root.bola._height / 2), true)) {
if (_root.bola.activo == 1) {
_root.bola._x = 25;
_root.bola._y = 335;
_root.bola.activo = 0;
_root.clickme._x = 41;
_root.clickme._y = 305;
_root.lives = _root.lives + 1;
}
}
if (_root.barra2.hitTest(_root.bola._x, _root.bola._y - (_root.bola._height / 2), true)) {
if (_root.bola.activo == 1) {
_root.bola._x = 25;
_root.bola._y = 335;
_root.bola.activo = 0;
_root.clickme._x = 41;
_root.clickme._y = 305;
_root.lives = _root.lives + 1;
}
}
if (_root.bola.inbola.hitTest(_root.barra3)) {
if (_root.bola.activo == 1) {
_root.bola._x = 25;
_root.bola._y = 335;
_root.bola.activo = 0;
_root.clickme._x = 41;
_root.clickme._y = 305;
_root.lives = _root.lives + 1;
}
}
if (_root.bola.inbola.hitTest(_root.final.dentro)) {
if (_root.levelup == 0) {
if (_root.musicbut.nomusic._visible == false) {
levelsup.start(0, 1);
}
}
_root.levelup = 1;
this.attachMovie("scoreplus", "scoreplus1", 600, {_x:350, _y:200});
_root.scoreplus1.estescore.text = score;
}
};
this.onMouseDown = function () {
if (_root.bola.hitTest(_xmouse, _ymouse, true)) {
_root.bola.activo = 1;
_root.clickme._y = 500;
}
if (_root.musicbut.hitTest(_xmouse, _ymouse, true)) {
if (_root.musicbut.nomusic._visible == false) {
_root.musicbut.nomusic._visible = true;
lamusica.stop();
} else {
lamusica.start(0, 1000);
_root.musicbut.nomusic._visible = false;
}
}
};
bola.onEnterFrame = function () {
var _local4 = _root._xmouse;
var _local3 = _root._ymouse;
if (this.activo == 1) {
if (_root.levelup == 0) {
this._x = this._x - ((this._x - _local4) / 6);
this._y = this._y - ((this._y - _local3) / 6);
}
}
};
Instance of Symbol 54 MovieClip "barra1" in Frame 5
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
this._y = this._y + -5;
}
if (this._y < -300) {
this._y = 420;
}
}
Instance of Symbol 111 MovieClip "barra2" in Frame 5
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
this._y = this._y + 6;
this._x = this._x + 6;
}
if (this._y > 420) {
this._y = -200;
this._x = 0.1;
}
}
Instance of Symbol 106 MovieClip "barra3" in Frame 5
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
this._x = this._x + -7;
}
if (this._x < -260) {
this._x = 660;
}
}
Frame 6
stop();
var xp1 = 63.5;
var tiempo = 30;
var zx = 0;
var levelup = 0;
var levelpoints1 = 1000;
var coins1 = 0;
var xc = 0;
var tbonus = 0;
var i = 0;
var cbonus = 0;
var b = 0;
var scoresum = 0;
nivel = 2;
_root.bola.px = 598;
_root.bola.py = 45;
_root.bola.inmune._visible = false;
this.onEnterFrame = function () {
zx = zx + 1;
if (zx == 30) {
if (levelup == 0) {
zx = 0;
if (tiempo >= 1) {
tiempo = tiempo + -1;
_root.tiempotext.text = tiempo;
}
if (tiempo == 0) {
if (_root.fin == 0) {
_root.fin = 1;
_root.bola.activo = 0;
this.attachMovie("gameover", "gover", _root.getNextHighestDepth(), {_x:350, _y:200});
_root.lastscore = (_root.score + _root.coins1) - (_root.lives * 100);
_root.scoring();
}
}
}
}
if (_root.bola.hitTest(_root.coin1)) {
_root.coins1 = _root.coins1 + 1000;
if (_root.musicbut.nomusic._visible == false) {
_root.coinsound.start(0, 1);
}
_root.coin1.swapDepths(_root.getNextHighestDepth());
_root.coin1.removeMovieClip();
}
if (_root.bola.inbola.hitTest(_root.barra1)) {
_root.bola._x = 18;
_root.bola._y = 53;
_root.bola.activo = 0;
_root.lives = _root.lives + 1;
}
if (_root.barra2.hitTest(_root.bola._x + (_root.bola._width / 2), _root.bola._y, true)) {
_root.bola._x = 18;
_root.bola._y = 53;
_root.bola.activo = 0;
_root.lives = _root.lives + 1;
}
if (_root.barra2.hitTest(_root.bola._x - (_root.bola._width / 2), _root.bola._y, true)) {
_root.bola._x = 18;
_root.bola._y = 53;
_root.bola.activo = 0;
_root.lives = _root.lives + 1;
}
if (_root.barra2.hitTest(_root.bola._x, _root.bola._y + (_root.bola._height / 2), true)) {
_root.bola._x = 18;
_root.bola._y = 53;
_root.bola.activo = 0;
_root.lives = _root.lives + 1;
}
if (_root.barra2.hitTest(_root.bola._x, _root.bola._y - (_root.bola._height / 2), true)) {
_root.bola._x = 18;
_root.bola._y = 53;
_root.bola.activo = 0;
_root.lives = _root.lives + 1;
}
if (_root.bola.inbola.hitTest(_root.barra3)) {
_root.bola._x = 18;
_root.bola._y = 53;
_root.bola.activo = 0;
_root.lives = _root.lives + 1;
}
if (_root.bola.inbola.hitTest(_root.barra4)) {
_root.bola._x = 18;
_root.bola._y = 53;
_root.bola.activo = 0;
_root.lives = _root.lives + 1;
}
if (_root.bola.inbola.hitTest(_root.barra5)) {
_root.bola._x = 18;
_root.bola._y = 53;
_root.bola.activo = 0;
_root.lives = _root.lives + 1;
}
if (_root.bola.hitTest(_root.final.dentro)) {
if (_root.levelup == 0) {
if (_root.musicbut.nomusic._visible == false) {
levelsup.start(0, 1);
}
}
_root.levelup = 1;
this.attachMovie("scoreplus", "scoreplus" + nivel, -600, {_x:350, _y:200});
_root.scoreplus2.estescore.text = score;
}
};
this.onMouseDown = function () {
if (_root.bola.hitTest(_xmouse, _ymouse, true)) {
_root.bola.activo = 1;
_root.clickme._y = 500;
}
if (_root.musicbut.hitTest(_xmouse, _ymouse, true)) {
if (_root.musicbut.nomusic._visible == false) {
_root.musicbut.nomusic._visible = true;
lamusica.stop();
} else {
lamusica.start(0, 1000);
_root.musicbut.nomusic._visible = false;
}
}
};
bola.onEnterFrame = function () {
var _local4 = _root._xmouse;
var _local3 = _root._ymouse;
if (this.activo == 1) {
if (_root.levelup == 0) {
this._x = this._x - ((this._x - _local4) / 6);
this._y = this._y - ((this._y - _local3) / 6);
}
}
};
Instance of Symbol 106 MovieClip "barra5" in Frame 6
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
this._y = this._y + 8;
}
if (this._y > 420) {
this._y = -300;
}
}
Instance of Symbol 106 MovieClip "barra2" in Frame 6
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
this._y = this._y + 6;
this._x = this._x + -6;
}
if (this._y > 420) {
this._y = -200.1;
this._x = 665.1;
}
}
Instance of Symbol 116 MovieClip "barra1" in Frame 6
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
this._y = this._y + -5;
}
if (this._y < -300) {
this._y = 420;
}
}
Instance of Symbol 54 MovieClip "barra4" in Frame 6
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
this._x = this._x + -7;
}
if (this._x < -260) {
this._x = 660;
}
}
Instance of Symbol 111 MovieClip "barra3" in Frame 6
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
this._x = this._x + 5;
}
if (this._x > 660) {
this._x = -260;
}
}
Frame 7
stop();
var xp1 = 63.5;
var tiempo = 30;
var zx = 0;
var levelup = 0;
var levelpoints1 = 1000;
var coins1 = 0;
var xc = 0;
var tbonus = 0;
var i = 0;
var cbonus = 0;
var b = 0;
var scoresum = 0;
var xmov = 0;
var xmov2 = 0;
nivel = 3;
_root.bola.px = 206;
_root.bola.py = 45;
_root.bola.inmune._visible = false;
this.onEnterFrame = function () {
zx = zx + 1;
if (zx == 30) {
if (levelup == 0) {
zx = 0;
if (tiempo >= 1) {
tiempo = tiempo + -1;
_root.tiempotext.text = tiempo;
}
if (tiempo == 0) {
if (_root.fin == 0) {
_root.fin = 1;
_root.bola.activo = 0;
this.attachMovie("gameover", "gover", _root.getNextHighestDepth(), {_x:350, _y:200});
_root.lastscore = (_root.score + _root.coins1) - (_root.lives * 100);
_root.scoring();
}
}
}
}
if (_root.bola.hitTest(_root.coin3)) {
_root.coins1 = _root.coins1 + 1000;
if (_root.musicbut.nomusic._visible == false) {
_root.coinsound.start(0, 1);
}
_root.coin3.swapDepths(_root.getNextHighestDepth());
_root.coin3.removeMovieClip();
}
if (_root.bola.hitTest(_root.coin2)) {
_root.coins1 = _root.coins1 + 1000;
if (_root.musicbut.nomusic._visible == false) {
_root.coinsound.start(0, 1);
}
_root.coin2.swapDepths(_root.getNextHighestDepth());
_root.coin2.removeMovieClip();
}
if (_root.bola.inbola.hitTest(_root.barra1)) {
_root.bola._x = 598;
_root.bola._y = 45;
_root.bola.activo = 0;
_root.lives = _root.lives + 1;
}
if (_root.barra2.hitTest(_root.bola._x + (_root.bola._width / 2), _root.bola._y, true)) {
_root.bola._x = 598;
_root.bola._y = 45;
_root.bola.activo = 0;
_root.lives = _root.lives + 1;
}
if (_root.barra2.hitTest(_root.bola._x - (_root.bola._width / 2), _root.bola._y, true)) {
_root.bola._x = 598;
_root.bola._y = 45;
_root.bola.activo = 0;
_root.lives = _root.lives + 1;
}
if (_root.barra2.hitTest(_root.bola._x, _root.bola._y + (_root.bola._height / 2), true)) {
_root.bola._x = 598;
_root.bola._y = 45;
_root.bola.activo = 0;
_root.lives = _root.lives + 1;
}
if (_root.barra2.hitTest(_root.bola._x, _root.bola._y - (_root.bola._height / 2), true)) {
_root.bola._x = 598;
_root.bola._y = 45;
_root.bola.activo = 0;
_root.lives = _root.lives + 1;
}
if (_root.bola.inbola.hitTest(_root.barra3)) {
_root.bola._x = 598;
_root.bola._y = 45;
_root.bola.activo = 0;
_root.lives = _root.lives + 1;
}
if (_root.bola.inbola.hitTest(_root.barra4)) {
_root.bola._x = 598;
_root.bola._y = 45;
_root.bola.activo = 0;
_root.lives = _root.lives + 1;
}
if (_root.barra5.hitTest(_root.bola._x + (_root.bola._width / 2), _root.bola._y, true)) {
_root.bola._x = 598;
_root.bola._y = 45;
_root.bola.activo = 0;
_root.lives = _root.lives + 1;
}
if (_root.barra5.hitTest(_root.bola._x - (_root.bola._width / 2), _root.bola._y, true)) {
_root.bola._x = 598;
_root.bola._y = 45;
_root.bola.activo = 0;
_root.lives = _root.lives + 1;
}
if (_root.barra5.hitTest(_root.bola._x, _root.bola._y + (_root.bola._height / 2), true)) {
_root.bola._x = 598;
_root.bola._y = 45;
_root.bola.activo = 0;
_root.lives = _root.lives + 1;
}
if (_root.barra5.hitTest(_root.bola._x, _root.bola._y - (_root.bola._height / 2), true)) {
_root.bola._x = 598;
_root.bola._y = 45;
_root.bola.activo = 0;
_root.lives = _root.lives + 1;
}
if (_root.bola.inbola.hitTest(_root.ds1.dentro)) {
_root.bola._x = 598;
_root.bola._y = 45;
_root.bola.activo = 0;
_root.lives = _root.lives + 1;
}
if (_root.bola.inbola.hitTest(_root.ds2.dentro)) {
_root.bola._x = 598;
_root.bola._y = 45;
_root.bola.activo = 0;
_root.lives = _root.lives + 1;
}
if (_root.bola.hitTest(_root.final.dentro)) {
if (_root.levelup == 0) {
if (_root.musicbut.nomusic._visible == false) {
levelsup.start(0, 1);
}
}
_root.levelup = 1;
this.attachMovie("scoreplus", "scoreplus" + nivel, -600, {_x:350, _y:200});
_root.scoreplus3.estescore.text = score;
}
};
this.onMouseDown = function () {
if (_root.bola.hitTest(_xmouse, _ymouse, true)) {
_root.bola.activo = 1;
_root.clickme._y = 500;
}
if (_root.musicbut.hitTest(_xmouse, _ymouse, true)) {
if (_root.musicbut.nomusic._visible == false) {
_root.musicbut.nomusic._visible = true;
lamusica.stop();
} else {
lamusica.start(0, 1000);
_root.musicbut.nomusic._visible = false;
}
}
};
bola.onEnterFrame = function () {
var _local4 = _root._xmouse;
var _local3 = _root._ymouse;
if (this.activo == 1) {
if (_root.levelup == 0) {
this._x = this._x - ((this._x - _local4) / 6);
this._y = this._y - ((this._y - _local3) / 6);
}
}
};
Instance of Symbol 54 MovieClip "barra2" in Frame 7
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
this._y = this._y + 6;
this._x = this._x + -6;
}
if (this._y > 420) {
this._y = -200.1;
this._x = 745.1;
}
}
Instance of Symbol 106 MovieClip "barra1" in Frame 7
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
this._y = this._y + -5;
}
if (this._y < -300) {
this._y = 420;
}
}
Instance of Symbol 111 MovieClip "barra4" in Frame 7
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
this._x = this._x + -7;
}
if (this._x < -260) {
this._x = 660;
}
}
Instance of Symbol 116 MovieClip "barra3" in Frame 7
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
this._x = this._x + 5;
}
if (this._x > 660) {
this._x = -260;
}
}
Instance of Symbol 116 MovieClip "barra5" in Frame 7
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
this._y = this._y + -6;
this._x = this._x + -6;
}
if (this._y < -220) {
this._y = 420;
this._x = 300;
}
}
Instance of Symbol 120 MovieClip "ds1" in Frame 7
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
_root.xmov = _root.xmov + 0.05;
this._x = this._x + (5 * Math.sin(_root.xmov));
this._y = this._y + -1;
if (this._y < -20) {
this._y = 410;
}
}
}
Instance of Symbol 120 MovieClip "ds2" in Frame 7
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
_root.xmov2 = _root.xmov2 + 0.07;
this._y = this._y + (7 * Math.sin(_root.xmov2));
this._x = this._x + -3;
if (this._x < -20) {
this._x = 670;
}
}
}
Frame 8
stop();
var xp1 = 63.5;
var tiempo = 30;
var zx = 0;
var levelup = 0;
var levelpoints1 = 1000;
var coins1 = 0;
var xc = 0;
var tbonus = 0;
var i = 0;
var cbonus = 0;
var b = 0;
var scoresum = 0;
var xmov = 0;
var ymov = 0;
var xmov2 = 0;
nivel = 4;
_root.bola.px = 279;
_root.bola.py = 45;
_root.bola.inmune._visible = false;
this.onEnterFrame = function () {
zx = zx + 1;
if (zx == 30) {
if (levelup == 0) {
zx = 0;
if (tiempo >= 1) {
tiempo = tiempo + -1;
_root.tiempotext.text = tiempo;
}
if (tiempo == 0) {
if (_root.fin == 0) {
_root.fin = 1;
_root.bola.activo = 0;
this.attachMovie("gameover", "gover", _root.getNextHighestDepth(), {_x:350, _y:200});
_root.lastscore = (_root.score + _root.coins1) - (_root.lives * 100);
_root.scoring();
}
}
}
}
if (_root.bola.activo == 1) {
if (_root.bola.hitTest(_root.coin4)) {
_root.coins1 = _root.coins1 + 1000;
if (_root.musicbut.nomusic._visible == false) {
_root.coinsound.start(0, 1);
}
_root.coin4.swapDepths(_root.getNextHighestDepth());
_root.coin4.removeMovieClip();
}
if (_root.bola.inbola.hitTest(_root.barra1)) {
_root.bola._x = 206;
_root.bola._y = 45;
_root.bola.activo = 0;
_root.lives = _root.lives + 1;
}
if (_root.bola.inbola.hitTest(_root.barra2)) {
_root.bola._x = 206;
_root.bola._y = 45;
_root.bola.activo = 0;
_root.lives = _root.lives + 1;
}
if (_root.bola.inbola.hitTest(_root.barra3)) {
_root.bola._x = 206;
_root.bola._y = 45;
_root.bola.activo = 0;
_root.lives = _root.lives + 1;
}
if (_root.bola.inbola.hitTest(_root.barra4)) {
_root.bola._x = 206;
_root.bola._y = 45;
_root.bola.activo = 0;
_root.lives = _root.lives + 1;
}
if (_root.barra5.hitTest(_root.bola._x + (_root.bola._width / 2), _root.bola._y, true)) {
_root.bola._x = 206;
_root.bola._y = 45;
_root.bola.activo = 0;
_root.lives = _root.lives + 1;
}
if (_root.barra5.hitTest(_root.bola._x - (_root.bola._width / 2), _root.bola._y, true)) {
_root.bola._x = 206;
_root.bola._y = 45;
_root.bola.activo = 0;
_root.lives = _root.lives + 1;
}
if (_root.barra5.hitTest(_root.bola._x, _root.bola._y + (_root.bola._height / 2), true)) {
_root.bola._x = 206;
_root.bola._y = 45;
_root.bola.activo = 0;
_root.lives = _root.lives + 1;
}
if (_root.barra5.hitTest(_root.bola._x, _root.bola._y - (_root.bola._height / 2), true)) {
_root.bola._x = 206;
_root.bola._y = 45;
_root.bola.activo = 0;
_root.lives = _root.lives + 1;
}
if (_root.bola.inbola.hitTest(_root.cuadro1)) {
_root.bola._x = 206;
_root.bola._y = 45;
_root.bola.activo = 0;
_root.lives = _root.lives + 1;
}
if (_root.bola.inbola.hitTest(_root.cuadro2)) {
_root.bola._x = 206;
_root.bola._y = 45;
_root.bola.activo = 0;
_root.lives = _root.lives + 1;
}
if (_root.bola.inbola.hitTest(_root.cuadro3)) {
_root.bola._x = 206;
_root.bola._y = 45;
_root.bola.activo = 0;
_root.lives = _root.lives + 1;
}
if (_root.bola.inbola.hitTest(_root.barra6)) {
_root.bola._x = 206;
_root.bola._y = 45;
_root.bola.activo = 0;
_root.lives = _root.lives + 1;
}
}
if (_root.bola.hitTest(_root.final.dentro)) {
if (_root.levelup == 0) {
if (_root.musicbut.nomusic._visible == false) {
levelsup.start(0, 1);
}
}
_root.levelup = 1;
this.attachMovie("scoreplus", "scoreplus" + nivel, -600, {_x:350, _y:200});
_root.scoreplus4.estescore.text = score;
}
};
this.onMouseDown = function () {
if (_root.bola.hitTest(_xmouse, _ymouse, true)) {
_root.bola.activo = 1;
_root.clickme._y = 500;
}
if (_root.musicbut.hitTest(_xmouse, _ymouse, true)) {
if (_root.musicbut.nomusic._visible == false) {
_root.musicbut.nomusic._visible = true;
lamusica.stop();
} else {
lamusica.start(0, 1000);
_root.musicbut.nomusic._visible = false;
}
}
};
bola.onEnterFrame = function () {
var _local4 = _root._xmouse;
var _local3 = _root._ymouse;
if (this.activo == 1) {
if (_root.levelup == 0) {
this._x = this._x - ((this._x - _local4) / 6);
this._y = this._y - ((this._y - _local3) / 6);
}
}
};
Instance of Symbol 106 MovieClip "barra2" in Frame 8
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
this._y = this._y + 5;
}
if (this._y > 420) {
this._y = -300;
}
}
Instance of Symbol 54 MovieClip "barra6" in Frame 8
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
this._x = this._x + 5;
}
if (this._x > 660) {
this._x = -260;
}
}
Instance of Symbol 209 MovieClip "cuadro2" in Frame 8
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
_root.ymov = _root.ymov + 0.07;
this._y = this._y + (5 * Math.cos(_root.ymov));
this._x = this._x + -5;
if (this._x < -20) {
this._x = 670;
}
}
}
Instance of Symbol 209 MovieClip "cuadro1" in Frame 8
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
_root.xmov = _root.xmov + 0.05;
_root.ymov = _root.ymov + 0.07;
this._x = this._x + (5 * Math.sin(_root.xmov));
this._y = this._y + (5 * Math.cos(_root.ymov));
if (this._y < -20) {
this._y = 410;
}
}
}
Instance of Symbol 209 MovieClip "cuadro3" in Frame 8
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
_root.xmov = _root.xmov + 0.05;
this._x = this._x + (random(15) * Math.sin(_root.xmov));
this._y = this._y + -3;
if (this._y < -20) {
this._y = 420;
}
}
}
Instance of Symbol 54 MovieClip "barra3" in Frame 8
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
this._y = this._y + -4;
}
if (this._y < -300) {
this._y = 420;
}
}
Instance of Symbol 116 MovieClip "barra4" in Frame 8
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
this._y = this._y + 7;
}
if (this._y > 420) {
this._y = -300;
}
}
Instance of Symbol 111 MovieClip "barra1" in Frame 8
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
this._y = this._y + -5;
}
if (this._y < -300) {
this._y = 420;
}
}
Frame 9
stop();
var xp1 = 63.5;
var tiempo = 30;
var zx = 0;
var levelup = 0;
var levelpoints1 = 1000;
var coins1 = 0;
var xc = 0;
var tbonus = 0;
var i = 0;
var cbonus = 0;
var b = 0;
var scoresum = 0;
var xmov = 0;
var ymov = 0;
var xmov2 = 0;
nivel = 5;
_root.bola.px = 590;
_root.bola.py = 355;
_root.bola.inmune._visible = false;
this.onEnterFrame = function () {
zx = zx + 1;
if (zx == 30) {
if (levelup == 0) {
zx = 0;
if (tiempo >= 1) {
tiempo = tiempo + -1;
_root.tiempotext.text = tiempo;
}
if (tiempo == 0) {
if (_root.fin == 0) {
_root.fin = 1;
_root.bola.activo = 0;
this.attachMovie("gameover", "gover", _root.getNextHighestDepth(), {_x:350, _y:200});
_root.lastscore = (_root.score + _root.coins1) - (_root.lives * 100);
_root.scoring();
}
}
}
}
if (_root.bola.hitTest(_root.coin5)) {
_root.coins1 = _root.coins1 + 1000;
if (_root.musicbut.nomusic._visible == false) {
_root.coinsound.start(0, 1);
}
_root.coin5.swapDepths(_root.getNextHighestDepth());
_root.coin5.removeMovieClip();
}
if (_root.bola.hitTest(_root.coin6)) {
_root.coins1 = _root.coins1 + 1000;
if (_root.musicbut.nomusic._visible == false) {
_root.coinsound.start(0, 1);
}
_root.coin6.swapDepths(_root.getNextHighestDepth());
_root.coin6.removeMovieClip();
}
if (_root.bola.inbola.hitTest(_root.barra1)) {
if (_root.bola.activo == 1) {
_root.bola._x = 279;
_root.bola._y = 45;
_root.bola.activo = 0;
_root.lives = _root.lives + 1;
}
}
if (_root.bola.inbola.hitTest(_root.barra2)) {
if (_root.bola.activo == 1) {
_root.bola._x = 279;
_root.bola._y = 45;
_root.bola.activo = 0;
_root.lives = _root.lives + 1;
}
}
if (_root.bola.inbola.hitTest(_root.barra3)) {
if (_root.bola.activo == 1) {
_root.bola._x = 279;
_root.bola._y = 45;
_root.bola.activo = 0;
_root.lives = _root.lives + 1;
}
}
if (_root.bola.inbola.hitTest(_root.barra4)) {
if (_root.bola.activo == 1) {
_root.bola._x = 279;
_root.bola._y = 45;
_root.bola.activo = 0;
_root.lives = _root.lives + 1;
}
}
if (_root.bola.inbola.hitTest(_root.barra5)) {
if (_root.bola.activo == 1) {
_root.bola._x = 279;
_root.bola._y = 45;
_root.bola.activo = 0;
_root.lives = _root.lives + 1;
}
}
if (_root.bola.inbola.hitTest(_root.barra6)) {
if (_root.bola.activo == 1) {
_root.bola._x = 279;
_root.bola._y = 45;
_root.bola.activo = 0;
_root.lives = _root.lives + 1;
}
}
if (_root.bola.inbola.hitTest(_root.barra7)) {
if (_root.bola.activo == 1) {
_root.bola._x = 279;
_root.bola._y = 45;
_root.bola.activo = 0;
_root.lives = _root.lives + 1;
}
}
if (_root.bola.inbola.hitTest(_root.cuadro1)) {
if (_root.bola.activo == 1) {
_root.bola._x = 279;
_root.bola._y = 45;
_root.bola.activo = 0;
_root.lives = _root.lives + 1;
}
}
if (_root.bola.inbola.hitTest(_root.cuadro2)) {
if (_root.bola.activo == 1) {
_root.bola._x = 279;
_root.bola._y = 45;
_root.bola.activo = 0;
_root.lives = _root.lives + 1;
}
}
if (_root.bola.inbola.hitTest(_root.ds1.dentro)) {
if (_root.bola.activo == 1) {
_root.bola._x = 279;
_root.bola._y = 45;
_root.bola.activo = 0;
_root.lives = _root.lives + 1;
}
}
if (_root.bola.hitTest(_root.final.dentro)) {
if (_root.levelup == 0) {
if (_root.musicbut.nomusic._visible == false) {
levelsup.start(0, 1);
}
}
_root.levelup = 1;
this.attachMovie("scoreplus", "scoreplus" + nivel, -600, {_x:350, _y:200});
_root["scoreplus" + nivel].estescore.text = score;
}
};
this.onMouseDown = function () {
if (_root.bola.hitTest(_xmouse, _ymouse, true)) {
_root.bola.activo = 1;
_root.clickme._y = 500;
}
if (_root.musicbut.hitTest(_xmouse, _ymouse, true)) {
if (_root.musicbut.nomusic._visible == false) {
_root.musicbut.nomusic._visible = true;
lamusica.stop();
} else {
lamusica.start(0, 1000);
_root.musicbut.nomusic._visible = false;
}
}
};
bola.onEnterFrame = function () {
var _local4 = _root._xmouse;
var _local3 = _root._ymouse;
if (this.activo == 1) {
if (_root.levelup == 0) {
this._x = this._x - ((this._x - _local4) / 6);
this._y = this._y - ((this._y - _local3) / 6);
}
}
};
Instance of Symbol 116 MovieClip "barra7" in Frame 9
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
this._y = this._y + 5;
}
if (this._y > 420) {
this._y = -300;
}
}
Instance of Symbol 111 MovieClip "barra1" in Frame 9
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
this._x = this._x + 8;
}
if (this._x > 660) {
this._x = -260;
}
}
Instance of Symbol 209 MovieClip "cuadro1" in Frame 9
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
_root.xmov = _root.xmov + 0.05;
_root.ymov = _root.ymov + 0.07;
this._x = this._x + (5 * Math.sin(_root.xmov));
this._y = this._y + (5 * Math.cos(_root.ymov));
if (this._y < -20) {
this._y = 410;
}
}
}
Instance of Symbol 209 MovieClip "cuadro2" in Frame 9
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
_root.ymov = _root.ymov + 0.07;
this._y = this._y + (random(15) * Math.cos(_root.ymov));
this._x = this._x + -3;
if (this._x < -20) {
this._x = 670;
}
}
}
Instance of Symbol 111 MovieClip "barra5" in Frame 9
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
this._y = this._y + 7;
}
if (this._y > 420) {
this._y = -300;
}
}
Instance of Symbol 116 MovieClip "barra3" in Frame 9
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
this._x = this._x + 3;
}
if (this._x > 660) {
this._x = -260;
}
}
Instance of Symbol 106 MovieClip "barra6" in Frame 9
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
this._x = this._x + -10;
}
if (this._x < -260) {
this._x = 660;
}
}
Instance of Symbol 54 MovieClip "barra2" in Frame 9
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
this._x = this._x + 8;
}
if (this._x > 660) {
this._x = -260;
}
}
Instance of Symbol 106 MovieClip "barra4" in Frame 9
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
this._x = this._x + -7;
}
if (this._x < -260) {
this._x = 660;
}
}
Instance of Symbol 120 MovieClip "ds1" in Frame 9
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
_root.xmov = _root.xmov + 0.07;
this._x = this._x + (random(15) * Math.sin(_root.xmov));
this._y = this._y + -3;
if (this._y < -20) {
this._y = 420;
}
}
}
Frame 10
stop();
var xp1 = 63.5;
var tiempo = 30;
var zx = 0;
var levelup = 0;
var levelpoints1 = 1000;
var coins1 = 0;
var xc = 0;
var tbonus = 0;
var i = 0;
var cbonus = 0;
var b = 0;
var scoresum = 0;
var xmov = 0;
var ymov = 0;
var xmov2 = 0;
var firen = 0;
nivel = 6;
_root.cfire1.fire = 0;
_root.cfire2.fire = 0;
_root.cfire3.fire = 0;
_root.bola.inicx = 590;
_root.bola.inicy = 355;
_root.bola.px = 26;
_root.bola.py = 45;
_root.bola.inmune._visible = false;
if (lamusica.position > 0) {
_root.musicbut.nomusic._visible = false;
}
var enemies = new Array("barra1", "barra2", "barra3", "barra5", "barra6", "cfire1", "cfire2", "cfire3", "cuadro1");
this.onEnterFrame = function () {
zx = zx + 1;
if (zx == 30) {
if (levelup == 0) {
zx = 0;
if (tiempo >= 1) {
tiempo = tiempo + -1;
_root.tiempotext.text = tiempo;
}
if (tiempo == 0) {
if (_root.fin == 0) {
_root.fin = 1;
_root.bola.activo = 0;
this.attachMovie("gameover", "gover", _root.getNextHighestDepth(), {_x:350, _y:200});
_root.lastscore = (_root.score + _root.coins1) - (_root.lives * 100);
_root.scoring();
}
}
}
}
if (_root.bola.hitTest(_root.coin7)) {
_root.coins1 = _root.coins1 + 1000;
if (_root.musicbut.nomusic._visible == false) {
_root.coinsound.start(0, 1);
}
_root.coin7.swapDepths(_root.getNextHighestDepth());
_root.coin7.removeMovieClip();
}
if (_root.bola.hitTest(_root.coin8)) {
_root.coins1 = _root.coins1 + 1000;
if (_root.musicbut.nomusic._visible == false) {
_root.coinsound.start(0, 1);
}
_root.coin8.swapDepths(_root.getNextHighestDepth());
_root.coin8.removeMovieClip();
}
for (var _local3 in enemies) {
if (_root.bola.inbola.hitTest(_root[_root.enemies[_local3]])) {
if (_root.bola.activo == 1) {
_root.bola._x = _root.bola.inicx;
_root.bola._y = _root.bola.inicy;
_root.bola.activo = 0;
_root.lives = _root.lives + 1;
}
}
}
if (_root.barra4.hitTest(_root.bola._x + (_root.bola._width / 2), _root.bola._y, true)) {
if (_root.bola.activo == 1) {
_root.bola._x = _root.bola.inicx;
_root.bola._y = _root.bola.inicy;
_root.bola.activo = 0;
_root.clickme._x = 41;
_root.clickme._y = 305;
_root.lives = _root.lives + 1;
}
}
if (_root.barra4.hitTest(_root.bola._x - (_root.bola._width / 2), _root.bola._y, true)) {
if (_root.bola.activo == 1) {
_root.bola._x = _root.bola.inicx;
_root.bola._y = _root.bola.inicy;
_root.bola.activo = 0;
_root.clickme._x = 41;
_root.clickme._y = 305;
_root.lives = _root.lives + 1;
}
}
if (_root.barra4.hitTest(_root.bola._x, _root.bola._y + (_root.bola._height / 2), true)) {
if (_root.bola.activo == 1) {
_root.bola._x = _root.bola.inicx;
_root.bola._y = _root.bola.inicy;
_root.bola.activo = 0;
_root.clickme._x = 41;
_root.clickme._y = 305;
_root.lives = _root.lives + 1;
}
}
if (_root.barra4.hitTest(_root.bola._x, _root.bola._y - (_root.bola._height / 2), true)) {
if (_root.bola.activo == 1) {
_root.bola._x = _root.bola.inicx;
_root.bola._y = _root.bola.inicy;
_root.bola.activo = 0;
_root.clickme._x = 41;
_root.clickme._y = 305;
_root.lives = _root.lives + 1;
}
}
if (_root.bola.hitTest(_root.final.dentro)) {
if (_root.levelup == 0) {
if (_root.musicbut.nomusic._visible == false) {
levelsup.start(0, 1);
}
}
_root.levelup = 1;
this.attachMovie("scoreplus", "scoreplus" + nivel, -600, {_x:350, _y:200});
_root["scoreplus" + nivel].estescore.text = score;
}
};
this.onMouseDown = function () {
if (_root.bola.hitTest(_xmouse, _ymouse, true)) {
_root.bola.activo = 1;
_root.clickme._y = 500;
}
if (_root.musicbut.hitTest(_xmouse, _ymouse, true)) {
if (_root.musicbut.nomusic._visible == false) {
_root.musicbut.nomusic._visible = true;
lamusica.stop();
} else {
lamusica.start(0, 1000);
_root.musicbut.nomusic._visible = false;
}
}
};
bola.onEnterFrame = function () {
var _local4 = _root._xmouse;
var _local3 = _root._ymouse;
if (this.activo == 1) {
if (_root.levelup == 0) {
this._x = this._x - ((this._x - _local4) / 6);
this._y = this._y - ((this._y - _local3) / 6);
}
}
};
Instance of Symbol 116 MovieClip "barra6" in Frame 10
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
this._y = this._y - 4;
}
if (this._y < -300) {
this._y = 420;
}
}
Instance of Symbol 111 MovieClip "barra2" in Frame 10
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
this._y = this._y + 7;
}
if (this._y > 420) {
this._y = -300;
}
}
Instance of Symbol 106 MovieClip "barra3" in Frame 10
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
this._x = this._x + -10;
}
if (this._x < -260) {
this._x = 660;
}
}
Instance of Symbol 116 MovieClip "barra1" in Frame 10
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
this._x = this._x + -3;
}
if (this._x < -260) {
this._x = 660;
}
}
Instance of Symbol 220 MovieClip "cfire1" in Frame 10
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
this._y = this._y + 5;
}
if (this._y > 420) {
this._y = -50;
}
}
Instance of Symbol 220 MovieClip "cfire2" in Frame 10
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
this._x = this._x + 7;
}
if (this._x > 670) {
this._x = -20;
}
}
Instance of Symbol 54 MovieClip "barra4" in Frame 10
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
this._y = this._y + 6;
this._x = this._x + -6;
}
if (this._y > 420) {
this._y = -200.1;
this._x = 665.1;
}
}
Instance of Symbol 54 MovieClip "barra5" in Frame 10
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
this._y = this._y + -4;
}
if (this._y < -300) {
this._y = 420;
}
}
Instance of Symbol 220 MovieClip "cfire3" in Frame 10
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
this._y = this._y + -5;
}
if (this._y < -50) {
this._y = 420;
}
}
Frame 11
stop();
var xp1 = 63.5;
var vsi = 0;
var tiempo = 30;
var zx = 0;
var levelup = 0;
var levelpoints1 = 1000;
var coins1 = 0;
var xc = 0;
var tbonus = 0;
var i = 0;
var cbonus = 0;
var b = 0;
var scoresum = 0;
var xmov = 0;
var ymov = 0;
var xmov2 = 0;
var firen = 0;
nivel = 7;
_root.cfire1.fire = 0;
_root.cfire2.fire = 0;
_root.bola.inicx = 26;
_root.bola.inicy = 45;
_root.bola.px = 566;
_root.bola.py = 322;
_root.bola.inmune._visible = false;
var enemies = new Array("barra1", "barra2", "barra3", "cfire1", "cfire2", "cuadro1");
var enemies2 = new Array("ds1", "ds2", "ds3", "ds4");
this.onEnterFrame = function () {
zx = zx + 1;
if (zx == 30) {
if (levelup == 0) {
zx = 0;
if (tiempo >= 1) {
tiempo = tiempo + -1;
_root.tiempotext.text = tiempo;
}
if (tiempo == 0) {
if (_root.fin == 0) {
_root.fin = 1;
_root.bola.activo = 0;
this.attachMovie("gameover", "gover", _root.getNextHighestDepth(), {_x:350, _y:200});
_root.lastscore = (_root.score + _root.coins1) - (_root.lives * 100);
_root.scoring();
}
}
}
}
if (_root.bola.hitTest(_root.coin9)) {
_root.coins1 = _root.coins1 + 1000;
if (_root.musicbut.nomusic._visible == false) {
_root.coinsound.start(0, 1);
}
_root.coin9.swapDepths(_root.getNextHighestDepth());
_root.coin9.removeMovieClip();
}
for (var _local3 in enemies) {
if (_root.bola.inbola.hitTest(_root[_root.enemies[_local3]])) {
if (_root.bola.activo == 1) {
if (_root.bola.inmune._visible == false) {
if (_root.levelup == 0) {
_root.bola._x = _root.bola.inicx;
_root.bola._y = _root.bola.inicy;
_root.bola.activo = 0;
_root.lives = _root.lives + 1;
}
}
}
}
}
for (var _local4 in enemies2) {
if (_root.bola.inbola.hitTest(_root[_root.enemies2[_local4]].dentro)) {
if (_root.bola.activo == 1) {
if (_root.bola.inmune._visible == false) {
if (_root.levelup == 0) {
_root.bola._x = _root.bola.inicx;
_root.bola._y = _root.bola.inicy;
_root.bola.activo = 0;
_root.lives = _root.lives + 1;
}
}
}
}
}
if (_root.bola.hitTest(_root.inmunidad1)) {
_root.bola.inmune._visible = true;
_root.inmunidad1._y = 500;
}
if (_root.bola.hitTest(_root.final.dentro)) {
if (_root.levelup == 0) {
if (_root.musicbut.nomusic._visible == false) {
levelsup.start(0, 1);
}
}
_root.levelup = 1;
this.attachMovie("scoreplus", "scoreplus" + nivel, -600, {_x:350, _y:200});
_root["scoreplus" + nivel].estescore.text = score;
}
};
this.onMouseDown = function () {
if (_root.bola.hitTest(_xmouse, _ymouse, true)) {
_root.bola.activo = 1;
_root.clickme._y = 500;
}
if (_root.musicbut.hitTest(_xmouse, _ymouse, true)) {
if (_root.musicbut.nomusic._visible == false) {
_root.musicbut.nomusic._visible = true;
lamusica.stop();
} else {
lamusica.start(0, 1000);
_root.musicbut.nomusic._visible = false;
}
}
};
bola.onEnterFrame = function () {
var _local4 = _root._xmouse;
var _local3 = _root._ymouse;
if (this.activo == 1) {
if (_root.levelup == 0) {
this._x = this._x - ((this._x - _local4) / 6);
this._y = this._y - ((this._y - _local3) / 6);
}
if (this.inmune._visible == true) {
vsi = vsi + 1;
if (vsi >= 150) {
this.inmune._visible = false;
vsi = 0;
}
}
}
};
Instance of Symbol 106 MovieClip "barra3" in Frame 11
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
this._y = this._y + -5;
}
if (this._y < -300) {
this._y = 420;
}
}
Instance of Symbol 54 MovieClip "barra2" in Frame 11
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
this._x = this._x + -7;
}
if (this._x < -260) {
this._x = 660;
}
}
Instance of Symbol 220 MovieClip "cfire1" in Frame 11
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
this._y = this._y + 5;
}
if (this._y > 420) {
this._y = -50;
}
}
Instance of Symbol 220 MovieClip "cfire2" in Frame 11
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
this._x = this._x + 7;
}
if (this._x > 670) {
this._x = -20;
}
}
Instance of Symbol 209 MovieClip "cuadro1" in Frame 11
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
_root.ymov = _root.ymov + 0.07;
this._y = this._y + (random(15) * Math.cos(_root.ymov));
this._x = this._x + -3;
if (this._x < -20) {
this._x = 670;
}
}
}
Instance of Symbol 120 MovieClip "ds1" in Frame 11
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
_root.xmov = _root.xmov + 0.05;
_root.ymov = _root.ymov + 0.07;
this._x = this._x + (5 * Math.sin(_root.xmov));
this._y = this._y + (5 * Math.cos(_root.ymov));
if (this._y < -20) {
this._y = 410;
}
}
}
Instance of Symbol 120 MovieClip "ds2" in Frame 11
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
_root.xmov = _root.xmov + 0.06;
_root.ymov = _root.ymov + 0.03;
this._x = this._x + (5 * Math.sin(_root.xmov));
this._y = this._y + (5 * Math.cos(_root.ymov));
if (this._y < -20) {
this._y = 410;
}
}
}
Instance of Symbol 120 MovieClip "ds3" in Frame 11
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
_root.xmov = _root.xmov + 0.06;
_root.ymov = _root.ymov + 0.04;
this._x = this._x + (5 * Math.sin(_root.xmov));
this._y = this._y + (5 * Math.cos(_root.ymov));
if (this._y < -20) {
this._y = 410;
}
}
}
Instance of Symbol 111 MovieClip "barra1" in Frame 11
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
this._y = this._y + 7;
}
if (this._y > 420) {
this._y = -300;
}
}
Instance of Symbol 120 MovieClip "ds4" in Frame 11
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
_root.xmov = _root.xmov + 0.06;
_root.ymov = _root.ymov + 0.03;
this._x = this._x + (random(30) * Math.sin(_root.xmov));
this._y = this._y + (5 * Math.cos(_root.ymov));
if (this._y < -20) {
this._y = 410;
}
}
}
Frame 12
stop();
var xp1 = 63.5;
var vsi = 0;
var tiempo = 30;
var zx = 0;
var levelup = 0;
var levelpoints1 = 1000;
var coins1 = 0;
var xc = 0;
var tbonus = 0;
var i = 0;
var cbonus = 0;
var b = 0;
var scoresum = 0;
var xmov = 0;
var ymov = 0;
var xmov2 = 0;
var firen = 0;
nivel = 8;
_root.cfire1.fire = 0;
_root.cfire2.fire = 0;
_root.bola.inicx = 566;
_root.bola.inicy = 322;
_root.bola.px = 305;
_root.bola.py = 336;
_root.bola.inmune._visible = false;
var enemies = new Array("barra1", "barra2", "barra3", "barra4", "barra5", "cfire1", "cfire2", "cfire3");
var enemies2 = new Array("ds1", "ds2");
this.onEnterFrame = function () {
zx = zx + 1;
if (zx == 30) {
if (levelup == 0) {
zx = 0;
if (tiempo >= 1) {
tiempo = tiempo + -1;
_root.tiempotext.text = tiempo;
}
if (tiempo == 0) {
if (_root.fin == 0) {
_root.fin = 1;
_root.bola.activo = 0;
this.attachMovie("gameover", "gover", _root.getNextHighestDepth(), {_x:350, _y:200});
_root.lastscore = (_root.score + _root.coins1) - (_root.lives * 100);
_root.scoring();
}
}
}
}
if (_root.bola.hitTest(_root.coin10)) {
_root.coins1 = _root.coins1 + 1000;
if (_root.musicbut.nomusic._visible == false) {
_root.coinsound.start(0, 1);
}
_root.coin10.swapDepths(_root.getNextHighestDepth());
_root.coin10.removeMovieClip();
}
for (var _local3 in enemies) {
if (_root.bola.inbola.hitTest(_root[_root.enemies[_local3]])) {
if (_root.bola.activo == 1) {
if (_root.bola.inmune._visible == false) {
if (_root.levelup == 0) {
_root.bola._x = _root.bola.inicx;
_root.bola._y = _root.bola.inicy;
_root.bola.activo = 0;
_root.lives = _root.lives + 1;
}
}
}
}
}
for (var _local4 in enemies2) {
if (_root.bola.inbola.hitTest(_root[_root.enemies2[_local4]].dentro)) {
if (_root.bola.activo == 1) {
if (_root.bola.inmune._visible == false) {
if (_root.levelup == 0) {
_root.bola._x = _root.bola.inicx;
_root.bola._y = _root.bola.inicy;
_root.bola.activo = 0;
_root.lives = _root.lives + 1;
}
}
}
}
}
if (_root.bola.hitTest(_root.final.dentro)) {
if (_root.levelup == 0) {
if (_root.musicbut.nomusic._visible == false) {
levelsup.start(0, 1);
}
}
_root.levelup = 1;
this.attachMovie("scoreplus", "scoreplus" + nivel, -600, {_x:350, _y:200});
_root["scoreplus" + nivel].estescore.text = score;
}
};
this.onMouseDown = function () {
if (_root.bola.hitTest(_xmouse, _ymouse, true)) {
_root.bola.activo = 1;
_root.clickme._y = 500;
}
if (_root.musicbut.hitTest(_xmouse, _ymouse, true)) {
if (_root.musicbut.nomusic._visible == false) {
_root.musicbut.nomusic._visible = true;
lamusica.stop();
} else {
lamusica.start(0, 1000);
_root.musicbut.nomusic._visible = false;
}
}
};
bola.onEnterFrame = function () {
var _local4 = _root._xmouse;
var _local3 = _root._ymouse;
if (this.activo == 1) {
if (_root.levelup == 0) {
this._x = this._x - ((this._x - _local4) / 6);
this._y = this._y - ((this._y - _local3) / 6);
}
if (this.inmune._visible == true) {
vsi = vsi + 1;
if (vsi >= 90) {
this.inmune._visible = false;
vsi = 0;
}
}
}
};
Instance of Symbol 54 MovieClip "barra5" in Frame 12
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
this._y = this._y + 5;
}
if (this._y > 420) {
this._y = -300;
}
}
Instance of Symbol 54 MovieClip "barra2" in Frame 12
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
this._x = this._x + 6;
}
if (this._x > 660) {
this._x = -260;
}
}
Instance of Symbol 220 MovieClip "cfire1" in Frame 12
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
this._y = this._y + 5;
this._x = this._x + 3;
}
if (this._y > 420) {
this._y = -50;
}
if (this._x > 670) {
this._x = 0;
}
}
Instance of Symbol 120 MovieClip "ds1" in Frame 12
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
_root.ymov = _root.ymov + 0.07;
this._y = this._y + (5 * Math.cos(_root.ymov));
this._x = this._x + -5;
if (this._x < -20) {
this._x = 670;
}
}
}
Instance of Symbol 120 MovieClip "ds2" in Frame 12
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
_root.xmov = _root.xmov + 0.06;
_root.ymov = _root.ymov + 0.04;
this._x = this._x + (random(10) * Math.sin(_root.xmov));
this._y = this._y + (5 * Math.cos(_root.ymov));
if (this._y < -20) {
this._y = 410;
}
}
}
Instance of Symbol 111 MovieClip "barra4" in Frame 12
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
this._x = this._x + -7;
}
if (this._x < -260) {
this._x = 660;
}
}
Instance of Symbol 116 MovieClip "barra1" in Frame 12
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
this._x = this._x + 4;
}
if (this._x > 660) {
this._x = -260;
}
}
Instance of Symbol 220 MovieClip "cfire3" in Frame 12
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
this._y = this._y + 3;
this._x = this._x + -6;
}
if (this._y > 420) {
this._y = -50;
}
if (this._x < -30) {
this._x = 670;
}
}
Frame 13
stop();
var xp1 = 63.5;
var vsi = 0;
var tiempo = 30;
var zx = 0;
var levelup = 0;
var levelpoints1 = 1000;
var coins1 = 0;
var xc = 0;
var tbonus = 0;
var i = 0;
var cbonus = 0;
var b = 0;
var scoresum = 0;
var xmov = 0;
var ymov = 0;
var xmov2 = 0;
var firen = 0;
nivel = 9;
_root.cfire1.fire = 0;
_root.cfire2.fire = 0;
_root.circulo1.inicx = 135;
_root.circulo1.inicy = 175;
_root.bola.inicx = 305;
_root.bola.inicy = 336;
_root.bola.px = 61;
_root.bola.py = 325;
_root.bola.inmune._visible = false;
var enemies = new Array("barra1", "barra2", "barra3", "barra4", "circulo1", "cfire1", "cuadro1", "cuadro2");
if (lamusica.position > 0) {
_root.musicbut.nomusic._visible = false;
}
this.onEnterFrame = function () {
zx = zx + 1;
if (zx == 30) {
if (levelup == 0) {
zx = 0;
if (tiempo >= 1) {
tiempo = tiempo + -1;
_root.tiempotext.text = tiempo;
}
if (tiempo == 0) {
if (_root.fin == 0) {
_root.fin = 1;
_root.bola.activo = 0;
this.attachMovie("gameover", "gover", _root.getNextHighestDepth(), {_x:350, _y:200});
_root.lastscore = (_root.score + _root.coins1) - (_root.lives * 100);
_root.scoring();
}
}
}
}
if (_root.bola.hitTest(_root.coin11)) {
_root.coins1 = _root.coins1 + 1000;
if (_root.musicbut.nomusic._visible == false) {
_root.coinsound.start(0, 1);
}
_root.coin11._y = 500;
}
if (_root.bola.hitTest(_root.coin12)) {
_root.coins1 = _root.coins1 + 1000;
if (_root.musicbut.nomusic._visible == false) {
_root.coinsound.start(0, 1);
}
_root.coin12.swapDepths(_root.getNextHighestDepth());
_root.coin12.removeMovieClip();
}
if (_root.bola.hitTest(_root.coin13)) {
_root.coins1 = _root.coins1 + 1000;
if (_root.musicbut.nomusic._visible == false) {
_root.coinsound.start(0, 1);
}
_root.coin13.swapDepths(_root.getNextHighestDepth());
_root.coin13.removeMovieClip();
}
for (var _local3 in enemies) {
if (_root.bola.inbola.hitTest(_root[_root.enemies[_local3]])) {
if (_root.bola.activo == 1) {
if (_root.bola.inmune._visible == false) {
if (_root.levelup == 0) {
_root.bola._x = _root.bola.inicx;
_root.bola._y = _root.bola.inicy;
_root.bola.activo = 0;
_root.circulo1._x = _root.circulo1.inicx;
_root.circulo1._y = _root.circulo1.inicy;
_root.lives = _root.lives + 1;
}
}
}
}
}
if (_root.bola.hitTest(_root.final.dentro)) {
if (_root.levelup == 0) {
if (_root.musicbut.nomusic._visible == false) {
levelsup.start(0, 1);
}
}
_root.levelup = 1;
this.attachMovie("scoreplus", "scoreplus" + nivel, -600, {_x:350, _y:200});
_root["scoreplus" + nivel].estescore.text = score;
}
};
this.onMouseDown = function () {
if (_root.bola.hitTest(_xmouse, _ymouse, true)) {
_root.bola.activo = 1;
_root.clickme._y = 500;
}
if (_root.musicbut.hitTest(_xmouse, _ymouse, true)) {
if (_root.musicbut.nomusic._visible == false) {
_root.musicbut.nomusic._visible = true;
lamusica.stop();
} else {
lamusica.start(0, 1000);
_root.musicbut.nomusic._visible = false;
}
}
};
bola.onEnterFrame = function () {
var _local4 = _root._xmouse;
var _local3 = _root._ymouse;
if (this.activo == 1) {
if (_root.levelup == 0) {
this._x = this._x - ((this._x - _local4) / 6);
this._y = this._y - ((this._y - _local3) / 6);
}
if (this.inmune._visible == true) {
vsi = vsi + 1;
if (vsi >= 90) {
this.inmune._visible = false;
vsi = 0;
}
}
}
};
Instance of Symbol 111 MovieClip "barra3" in Frame 13
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
this._y = this._y + -5;
}
if (this._y < -300) {
this._y = 420;
}
}
Instance of Symbol 54 MovieClip "barra2" in Frame 13
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
this._x = this._x + -7;
}
if (this._x < -260) {
this._x = 660;
}
}
Instance of Symbol 116 MovieClip "barra4" in Frame 13
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
this._x = this._x + -7;
}
if (this._x < -260) {
this._x = 660;
}
}
Instance of Symbol 241 MovieClip "circulo1" in Frame 13
/* no clip actions */
Instance of Symbol 106 MovieClip "barra1" in Frame 13
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
this._y = this._y + -5;
}
if (this._y < -300) {
this._y = 420;
}
}
Instance of Symbol 209 MovieClip "cuadro1" in Frame 13
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
_root.xmov = _root.xmov + 0.05;
_root.ymov = _root.ymov + 0.07;
this._x = this._x + (5 * Math.sin(_root.xmov));
this._y = this._y + (5 * Math.cos(_root.ymov));
if (this._y < -20) {
this._y = 410;
}
}
}
Instance of Symbol 220 MovieClip "cfire1" in Frame 13
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
this._y = this._y + -3;
this._x = this._x + 3;
}
if (this._y < -50) {
this._y = 420;
}
if (this._x > 670) {
this._x = -30;
}
}
Instance of Symbol 209 MovieClip "cuadro2" in Frame 13
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
_root.xmov = _root.xmov + 0.05;
this._x = this._x + (random(15) * Math.sin(_root.xmov));
this._y = this._y + -3;
if (this._y < -20) {
this._y = 420;
}
}
}
Frame 14
stop();
var xp1 = 63.5;
var vsi = 0;
var tiempo = 30;
var zx = 0;
var levelup = 0;
var levelpoints1 = 1000;
var coins1 = 0;
var xc = 0;
var tbonus = 0;
var i = 0;
var cbonus = 0;
var b = 0;
var scoresum = 0;
var xmov = 0;
var ymov = 0;
var xmov2 = 0;
var firen = 0;
nivel = 10;
_root.cfire1.fire = 0;
_root.cfire2.fire = 0;
_root.bola.inicx = 61;
_root.bola.inicy = 325;
_root.bola.px = 573;
_root.bola.py = 322;
_root.circulo1._x = 33;
_root.circulo1._y = 45;
_root.circulo1.inicx = 33;
_root.circulo1.inicy = 45;
_root.circulo2.inicx = 475;
_root.circulo2.inicy = 326;
_root.circulo3.inicx = 406;
_root.circulo3.inicy = 45;
_root.coin11._x = 315;
_root.coin11._y = 313;
_root.bola.inmune._visible = false;
var enemies = new Array("barra1", "barra2", "cfire2", "cfire1", "circulo2", "circulo1", "circulo3");
var enemies2 = new Array("ds1");
this.onEnterFrame = function () {
zx = zx + 1;
if (zx == 30) {
if (levelup == 0) {
zx = 0;
if (tiempo >= 1) {
tiempo = tiempo + -1;
_root.tiempotext.text = tiempo;
}
if (tiempo == 0) {
if (_root.fin == 0) {
_root.fin = 1;
_root.bola.activo = 0;
this.attachMovie("gameover", "gover", _root.getNextHighestDepth(), {_x:350, _y:200});
_root.lastscore = (_root.score + _root.coins1) - (_root.lives * 100);
_root.scoring();
}
}
}
}
if (_root.bola.hitTest(_root.coin11)) {
_root.coins1 = _root.coins1 + 1000;
if (_root.musicbut.nomusic._visible == false) {
_root.coinsound.start(0, 1);
}
_root.coin11._y = 500;
}
for (var _local3 in enemies) {
if (_root.bola.inbola.hitTest(_root[_root.enemies[_local3]])) {
if (_root.bola.activo == 1) {
if (_root.bola.inmune._visible == false) {
if (_root.levelup == 0) {
_root.bola._x = _root.bola.inicx;
_root.bola._y = _root.bola.inicy;
_root.bola.activo = 0;
_root.circulo1._x = _root.circulo1.inicx;
_root.circulo1._y = _root.circulo1.inicy;
_root.circulo2._x = _root.circulo2.inicx;
_root.circulo2._y = _root.circulo2.inicy;
_root.circulo3._x = _root.circulo3.inicx;
_root.circulo3._y = _root.circulo3.inicy;
_root.lives = _root.lives + 1;
}
}
}
}
}
for (var _local4 in enemies2) {
if (_root.bola.inbola.hitTest(_root[_root.enemies2[_local4]].dentro)) {
if (_root.bola.activo == 1) {
if (_root.bola.inmune._visible == false) {
if (_root.levelup == 0) {
_root.bola._x = _root.bola.inicx;
_root.bola._y = _root.bola.inicy;
_root.bola.activo = 0;
_root.circulo1._x = _root.circulo1.inicx;
_root.circulo1._y = _root.circulo1.inicy;
_root.circulo2._x = _root.circulo2.inicx;
_root.circulo2._y = _root.circulo2.inicy;
_root.circulo3._x = _root.circulo3.inicx;
_root.circulo3._y = _root.circulo3.inicy;
_root.lives = _root.lives + 1;
}
}
}
}
}
if (_root.bola.hitTest(_root.final.dentro)) {
if (_root.levelup == 0) {
if (_root.musicbut.nomusic._visible == false) {
levelsup.start(0, 1);
}
}
_root.levelup = 1;
this.attachMovie("scoreplus", "scoreplus" + nivel, -600, {_x:350, _y:200});
_root["scoreplus" + nivel].estescore.text = score;
}
};
this.onMouseDown = function () {
if (_root.bola.hitTest(_xmouse, _ymouse, true)) {
_root.bola.activo = 1;
_root.clickme._y = 500;
}
if (_root.musicbut.hitTest(_xmouse, _ymouse, true)) {
if (_root.musicbut.nomusic._visible == false) {
_root.musicbut.nomusic._visible = true;
lamusica.stop();
} else {
lamusica.start(0, 1000);
_root.musicbut.nomusic._visible = false;
}
}
};
bola.onEnterFrame = function () {
var _local4 = _root._xmouse;
var _local3 = _root._ymouse;
if (this.activo == 1) {
if (_root.levelup == 0) {
this._x = this._x - ((this._x - _local4) / 6);
this._y = this._y - ((this._y - _local3) / 6);
}
if (this.inmune._visible == true) {
vsi = vsi + 1;
if (vsi >= 90) {
this.inmune._visible = false;
vsi = 0;
}
}
}
};
Instance of Symbol 111 MovieClip "barra1" in Frame 14
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
this._x = this._x + -7;
}
if (this._x < -260) {
this._x = 660;
}
}
Instance of Symbol 220 MovieClip "cfire1" in Frame 14
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
this._y = this._y + 5;
this._x = this._x + 3;
}
if (this._y > 420) {
this._y = -50;
}
if (this._x > 670) {
this._x = 0;
}
}
Instance of Symbol 120 MovieClip "ds1" in Frame 14
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
_root.xmov = _root.xmov + 0.06;
_root.ymov = _root.ymov + 0.04;
this._x = this._x + (random(10) * Math.sin(_root.xmov));
this._y = this._y + (5 * Math.cos(_root.ymov));
if (this._y < -20) {
this._y = 410;
}
}
}
Instance of Symbol 220 MovieClip "cfire2" in Frame 14
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
this._x = this._x + 7;
}
if (this._x > 670) {
this._x = -20;
}
}
Instance of Symbol 241 MovieClip "circulo2" in Frame 14
/* no clip actions */
Instance of Symbol 241 MovieClip "circulo3" in Frame 14
/* no clip actions */
Instance of Symbol 106 MovieClip "barra2" in Frame 14
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
this._y = this._y + -3;
}
if (this._y < -300) {
this._y = 420;
}
}
Frame 15
stop();
var xp1 = 63.5;
var vsi = 0;
var cirfn = 0;
var tiempo = 30;
var zx = 0;
var levelup = 0;
var levelpoints1 = 1000;
var coins1 = 0;
var xc = 0;
var tbonus = 0;
var i = 0;
var cbonus = 0;
var b = 0;
var scoresum = 0;
var xmov = 0;
var ymov = 0;
var xmov2 = 0;
var firen = 0;
nivel = 11;
_root.cfire1.fire = 0;
_root.cfire2.fire = 0;
_root.bola.inicx = 573;
_root.bola.inicy = 322;
_root.bola.px = 42;
_root.bola.py = 343;
_root.coin11._x = 310;
_root.coin11._y = 67;
_root.cirfire1.inicx = 543;
_root.cirfire1.inicy = 64;
_root.cirfire2.inicx = 273;
_root.cirfire2.inicy = 45;
_root.bola.inmune._visible = false;
var enemies = new Array("barra1", "barra2", "barra3", "barra4", "barra5", "cirfire1", "cuadro1");
var enemies2 = new Array("ds1", "ds2");
this.onEnterFrame = function () {
zx = zx + 1;
if (zx == 30) {
if (levelup == 0) {
zx = 0;
if (tiempo >= 1) {
tiempo = tiempo + -1;
_root.tiempotext.text = tiempo;
}
if (tiempo == 0) {
if (_root.fin == 0) {
_root.fin = 1;
_root.bola.activo = 0;
this.attachMovie("gameover", "gover", _root.getNextHighestDepth(), {_x:350, _y:200});
_root.lastscore = (_root.score + _root.coins1) - (_root.lives * 100);
_root.scoring();
}
}
}
}
if (_root.bola.hitTest(_root.coin11)) {
_root.coins1 = _root.coins1 + 1000;
if (_root.musicbut.nomusic._visible == false) {
_root.coinsound.start(0, 1);
}
_root.coin11._y = 500;
}
for (var _local3 in enemies) {
if (_root.bola.inbola.hitTest(_root[_root.enemies[_local3]])) {
if (_root.bola.activo == 1) {
if (_root.bola.inmune._visible == false) {
if (_root.levelup == 0) {
_root.bola._x = _root.bola.inicx;
_root.bola._y = _root.bola.inicy;
_root.bola.activo = 0;
_root.cirfire1._x = _root.cirfire1.inicx;
_root.cirfire1._y = _root.cirfire1.inicy;
_root.lives = _root.lives + 1;
}
}
}
}
}
for (var _local4 in enemies2) {
if (_root.bola.inbola.hitTest(_root[_root.enemies2[_local4]].dentro)) {
if (_root.bola.activo == 1) {
if (_root.bola.inmune._visible == false) {
if (_root.levelup == 0) {
_root.bola._x = _root.bola.inicx;
_root.bola._y = _root.bola.inicy;
_root.bola.activo = 0;
_root.cirfire1._x = _root.cirfire1.inicx;
_root.cirfire1._y = _root.cirfire1.inicy;
_root.lives = _root.lives + 1;
}
}
}
}
}
if (_root.bola.hitTest(_root.inmunidad1)) {
_root.bola.inmune._visible = true;
_root.inmunidad1._y = 500;
}
if (_root.bola.hitTest(_root.final.dentro)) {
if (_root.levelup == 0) {
if (_root.musicbut.nomusic._visible == false) {
levelsup.start(0, 1);
}
}
_root.levelup = 1;
this.attachMovie("scoreplus", "scoreplus" + nivel, -600, {_x:350, _y:200});
_root["scoreplus" + nivel].estescore.text = score;
}
};
this.onMouseDown = function () {
if (_root.bola.hitTest(_xmouse, _ymouse, true)) {
_root.bola.activo = 1;
}
if (_root.musicbut.hitTest(_xmouse, _ymouse, true)) {
if (_root.musicbut.nomusic._visible == false) {
_root.musicbut.nomusic._visible = true;
lamusica.stop();
} else {
lamusica.start(0, 1000);
_root.musicbut.nomusic._visible = false;
}
}
};
bola.onEnterFrame = function () {
var _local4 = _root._xmouse;
var _local3 = _root._ymouse;
if (this.activo == 1) {
if (_root.levelup == 0) {
this._x = this._x - ((this._x - _local4) / 6);
this._y = this._y - ((this._y - _local3) / 6);
}
if (this.inmune._visible == true) {
vsi = vsi + 1;
if (vsi >= 90) {
this.inmune._visible = false;
vsi = 0;
}
}
}
};
Instance of Symbol 54 MovieClip "barra1" in Frame 15
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
this._x = this._x + -7;
}
if (this._x < -260) {
this._x = 660;
}
}
Instance of Symbol 106 MovieClip "barra2" in Frame 15
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
this._y = this._y + -2;
}
if (this._y < -300) {
this._y = 420;
}
}
Instance of Symbol 120 MovieClip "ds1" in Frame 15
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
_root.xmov = _root.xmov + 0.05;
_root.ymov = _root.ymov + 0.07;
this._x = this._x + (5 * Math.sin(_root.xmov));
this._y = this._y + (5 * Math.cos(_root.ymov));
if (this._y < -20) {
this._y = 410;
}
}
}
Instance of Symbol 209 MovieClip "cuadro1" in Frame 15
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
_root.xmov = _root.xmov + 0.05;
this._x = this._x + (random(15) * Math.sin(_root.xmov));
this._y = this._y + -3;
if (this._y < -20) {
this._y = 420;
}
}
}
Instance of Symbol 120 MovieClip "ds2" in Frame 15
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
_root.xmov = _root.xmov + 0.05;
_root.ymov = _root.ymov + 0.07;
this._x = this._x + (5 * Math.sin(_root.xmov));
this._y = this._y + (5 * Math.cos(_root.ymov));
if (this._y < -20) {
this._y = 410;
}
}
}
Instance of Symbol 116 MovieClip "barra4" in Frame 15
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
this._y = this._y + -7;
}
if (this._y < -300) {
this._y = 420;
}
}
Instance of Symbol 54 MovieClip "barra3" in Frame 15
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
this._y = this._y + 2.5;
}
if (this._y > 420) {
this._y = -300;
}
}
Instance of Symbol 111 MovieClip "barra5" in Frame 15
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
this._y = this._y + 7;
}
if (this._y > 420) {
this._y = -300;
}
}
Frame 16
stop();
var xp1 = 63.5;
var vsi = 0;
var cirfn = 0;
var tiempo = 30;
var zx = 0;
var levelup = 0;
var levelpoints1 = 1000;
var coins1 = 0;
var xc = 0;
var tbonus = 0;
var i = 0;
var cbonus = 0;
var b = 0;
var scoresum = 0;
var xmov = 0;
var ymov = 0;
var ymov2 = 0;
var xmov2 = 0;
var firen = 0;
nivel = 12;
_root.cfire1.fire = 0;
_root.cfire2.fire = 0;
_root.cfire1._x = 470;
_root.cfire1._y = 43;
_root.bola.inicx = 42;
_root.bola.inicy = 343;
_root.bola.px = 554;
_root.bola.py = 55;
_root.coin11._x = 55;
_root.coin11._y = 72;
_root.cirfire1._x = 470;
_root.cirfire1._y = 43;
_root.cirfire2._x = 200;
_root.cirfire2._y = 43;
_root.circulo1._x = 531;
_root.circulo1._y = 315;
_root.cirfire1.inicx = 470;
_root.cirfire1.inicy = 43;
_root.cirfire2.inicx = 200;
_root.cirfire2.inicy = 43;
_root.circulo1.inicx = 531;
_root.circulo1.inicy = 315;
_root.bola.inmune._visible = false;
var enemies = new Array("barra1", "barra2", "barra3", "cirfire1", "cirfire2", "cfire2", "cfire1", "cuadro2", "cuadro1", "circulo1");
this.onEnterFrame = function () {
zx = zx + 1;
if (zx == 30) {
if (levelup == 0) {
zx = 0;
if (tiempo >= 1) {
tiempo = tiempo + -1;
_root.tiempotext.text = tiempo;
}
if (tiempo == 0) {
if (_root.fin == 0) {
_root.fin = 1;
_root.bola.activo = 0;
this.attachMovie("gameover", "gover", _root.getNextHighestDepth(), {_x:350, _y:200});
_root.lastscore = (_root.score + _root.coins1) - (_root.lives * 100);
_root.scoring();
}
}
}
}
if (_root.bola.hitTest(_root.coin11)) {
_root.coins1 = _root.coins1 + 1000;
if (_root.musicbut.nomusic._visible == false) {
_root.coinsound.start(0, 1);
}
_root.coin11._y = 500;
}
if (_root.bola.hitTest(_root.coin15)) {
_root.coins1 = _root.coins1 + 1000;
if (_root.musicbut.nomusic._visible == false) {
_root.coinsound.start(0, 1);
}
_root.coin15._y = 500;
}
if (_root.bola.hitTest(_root.coin16)) {
_root.coins1 = _root.coins1 + 1000;
if (_root.musicbut.nomusic._visible == false) {
_root.coinsound.start(0, 1);
}
_root.coin16._y = 500;
}
if (_root.bola.hitTest(_root.coin17)) {
_root.coins1 = _root.coins1 + 1000;
if (_root.musicbut.nomusic._visible == false) {
_root.coinsound.start(0, 1);
}
_root.coin17._y = 500;
}
for (var _local3 in enemies) {
if (_root.bola.inbola.hitTest(_root[_root.enemies[_local3]])) {
if (_root.bola.activo == 1) {
if (_root.bola.inmune._visible == false) {
if (_root.levelup == 0) {
_root.bola._x = _root.bola.inicx;
_root.bola._y = _root.bola.inicy;
_root.bola.activo = 0;
_root.cirfire1._x = _root.cirfire1.inicx;
_root.cirfire1._y = _root.cirfire1.inicy;
_root.cirfire2._x = _root.cirfire2.inicx;
_root.cirfire2._y = _root.cirfire2.inicy;
_root.circulo1._x = _root.circulo1.inicx;
_root.circulo1._y = _root.circulo1.inicy;
_root.lives = _root.lives + 1;
}
}
}
}
}
if (_root.bola.hitTest(_root.inmunidad1)) {
_root.bola.inmune._visible = true;
_root.inmunidad1._y = 500;
}
if (_root.bola.hitTest(_root.final.dentro)) {
if (_root.levelup == 0) {
if (_root.musicbut.nomusic._visible == false) {
levelsup.start(0, 1);
}
}
_root.levelup = 1;
this.attachMovie("scoreplus", "scoreplus" + nivel, -600, {_x:350, _y:200});
_root["scoreplus" + nivel].estescore.text = score;
}
};
this.onMouseDown = function () {
if (_root.bola.hitTest(_xmouse, _ymouse, true)) {
_root.bola.activo = 1;
}
if (_root.musicbut.hitTest(_xmouse, _ymouse, true)) {
if (_root.musicbut.nomusic._visible == false) {
_root.musicbut.nomusic._visible = true;
lamusica.stop();
} else {
lamusica.start(0, 1000);
_root.musicbut.nomusic._visible = false;
}
}
};
bola.onEnterFrame = function () {
var _local4 = _root._xmouse;
var _local3 = _root._ymouse;
if (this.activo == 1) {
if (_root.levelup == 0) {
this._x = this._x - ((this._x - _local4) / 6);
this._y = this._y - ((this._y - _local3) / 6);
}
if (this.inmune._visible == true) {
vsi = vsi + 1;
if (vsi >= 90) {
this.inmune._visible = false;
vsi = 0;
}
}
}
};
Instance of Symbol 111 MovieClip "barra1" in Frame 16
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
this._x = this._x + -7;
}
if (this._x < -260) {
this._x = 660;
}
}
Instance of Symbol 116 MovieClip "barra2" in Frame 16
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
this._y = this._y + -5;
}
if (this._y < -300) {
this._y = 420;
}
}
Instance of Symbol 209 MovieClip "cuadro2" in Frame 16
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
_root.ymov = _root.ymov + 0.07;
this._y = this._y + (5 * Math.cos(_root.ymov));
this._x = this._x + -5;
if (this._x < -20) {
this._x = 670;
}
}
}
Instance of Symbol 209 MovieClip "cuadro1" in Frame 16
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
_root.ymov2 = _root.ymov2 + -0.05;
this._y = this._y + (5 * Math.cos(_root.ymov2));
this._x = this._x + -5;
if (this._x < -20) {
this._x = 670;
}
}
}
Instance of Symbol 220 MovieClip "cfire1" in Frame 16
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
this._y = this._y + 5;
}
if (this._y > 420) {
this._y = -50;
}
}
Instance of Symbol 106 MovieClip "barra3" in Frame 16
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
this._y = this._y + -5;
}
if (this._y < -300) {
this._y = 420;
}
}
Instance of Symbol 220 MovieClip "cfire2" in Frame 16
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
this._x = this._x + 5;
}
if (this._x > 670) {
this._x = -50;
}
}
Instance of Symbol 241 MovieClip "circulo1" in Frame 16
/* no clip actions */
Frame 17
stop();
var xp1 = 63.5;
var vsi = 0;
var cirfn = 0;
var tiempo = 30;
var zx = 0;
var levelup = 0;
var levelpoints1 = 1000;
var coins1 = 0;
var xc = 0;
var tbonus = 0;
var i = 0;
var cbonus = 0;
var b = 0;
var scoresum = 0;
var xmov = 0;
var ymov = 0;
var ymov2 = 0;
var xmov2 = 0;
var firen = 0;
nivel = 13;
_root.cfire1.fire = 0;
_root.cfire2.fire = 0;
_root.bola.inicx = 554;
_root.bola.inicy = 55;
_root.bola.px = 30;
_root.bola.py = 67;
_root.coin11._x = 545;
_root.coin11._y = 320;
_root.cirfire1._x = 47;
_root.cirfire1._y = 302;
_root.cirfire1.inicx = 47;
_root.cirfire1.inicy = 302;
_root.cirfire2.inicx = 273;
_root.cirfire2.inicy = 45;
_root.circulo1.inicx = 273;
_root.circulo1.inicy = 45;
_root.bola.inmune._visible = false;
var enemies = new Array("barra1", "barra2", "barra3", "barra4", "cirfire1", "cfire1", "cfire2", "circulo1");
var enemies2 = new Array("ds1");
this.onEnterFrame = function () {
zx = zx + 1;
if (zx == 30) {
if (levelup == 0) {
zx = 0;
if (tiempo >= 1) {
tiempo = tiempo + -1;
_root.tiempotext.text = tiempo;
}
if (tiempo == 0) {
if (_root.fin == 0) {
_root.fin = 1;
_root.bola.activo = 0;
this.attachMovie("gameover", "gover", _root.getNextHighestDepth(), {_x:350, _y:200});
_root.lastscore = (_root.score + _root.coins1) - (_root.lives * 100);
_root.scoring();
}
}
}
}
if (_root.bola.hitTest(_root.coin11)) {
_root.coins1 = _root.coins1 + 1000;
if (_root.musicbut.nomusic._visible == false) {
_root.coinsound.start(0, 1);
}
_root.coin11._y = 500;
}
for (var _local3 in enemies) {
if (_root.bola.inbola.hitTest(_root[_root.enemies[_local3]])) {
if (_root.bola.activo == 1) {
if (_root.bola.inmune._visible == false) {
if (_root.levelup == 0) {
_root.bola._x = _root.bola.inicx;
_root.bola._y = _root.bola.inicy;
_root.bola.activo = 0;
_root.cirfire1._x = _root.cirfire1.inicx;
_root.cirfire1._y = _root.cirfire1.inicy;
_root.circulo1._x = _root.circulo1.inicx;
_root.circulo1._y = _root.circulo1.inicy;
_root.lives = _root.lives + 1;
}
}
}
}
}
for (var _local4 in enemies2) {
if (_root.bola.inbola.hitTest(_root[_root.enemies2[_local4]].dentro)) {
if (_root.bola.activo == 1) {
if (_root.bola.inmune._visible == false) {
if (_root.levelup == 0) {
_root.bola._x = _root.bola.inicx;
_root.bola._y = _root.bola.inicy;
_root.bola.activo = 0;
_root.cirfire1._x = _root.cirfire1.inicx;
_root.cirfire1._y = _root.cirfire1.inicy;
_root.circulo1._x = _root.circulo1.inicx;
_root.circulo1._y = _root.circulo1.inicy;
_root.lives = _root.lives + 1;
}
}
}
}
}
if (_root.bola.hitTest(_root.inmunidad1)) {
_root.bola.inmune._visible = true;
_root.inmunidad1._y = 500;
}
if (_root.bola.hitTest(_root.final.dentro)) {
if (_root.levelup == 0) {
if (_root.musicbut.nomusic._visible == false) {
levelsup.start(0, 1);
}
}
_root.levelup = 1;
this.attachMovie("scoreplus", "scoreplus" + nivel, -600, {_x:350, _y:200});
_root["scoreplus" + nivel].estescore.text = score;
}
};
this.onMouseDown = function () {
if (_root.bola.hitTest(_xmouse, _ymouse, true)) {
_root.bola.activo = 1;
}
if (_root.musicbut.hitTest(_xmouse, _ymouse, true)) {
if (_root.musicbut.nomusic._visible == false) {
_root.musicbut.nomusic._visible = true;
lamusica.stop();
} else {
lamusica.start(0, 1000);
_root.musicbut.nomusic._visible = false;
}
}
};
bola.onEnterFrame = function () {
var _local4 = _root._xmouse;
var _local3 = _root._ymouse;
if (this.activo == 1) {
if (_root.levelup == 0) {
this._x = this._x - ((this._x - _local4) / 6);
this._y = this._y - ((this._y - _local3) / 6);
}
if (this.inmune._visible == true) {
vsi = vsi + 1;
if (vsi >= 90) {
this.inmune._visible = false;
vsi = 0;
}
}
}
};
Instance of Symbol 116 MovieClip "barra1" in Frame 17
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
this._y = this._y + -2;
}
if (this._y < -300) {
this._y = 420;
}
}
Instance of Symbol 220 MovieClip "cfire1" in Frame 17
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
this._x = this._x + 5;
}
if (this._x > 670) {
this._x = -50;
}
}
Instance of Symbol 54 MovieClip "barra3" in Frame 17
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
this._y = this._y + -6;
}
if (this._y < -300) {
this._y = 420;
}
}
Instance of Symbol 106 MovieClip "barra2" in Frame 17
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
this._y = this._y + 6;
}
if (this._y > 420) {
this._y = -300;
}
}
Instance of Symbol 111 MovieClip "barra4" in Frame 17
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
this._y = this._y + 4;
}
if (this._y > 420) {
this._y = -300;
}
}
Instance of Symbol 120 MovieClip "ds1" in Frame 17
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
_root.xmov = _root.xmov + 0.05;
_root.ymov = _root.ymov + 0.07;
this._x = this._x + (5 * Math.sin(_root.xmov));
this._y = this._y + (5 * Math.cos(_root.ymov));
if (this._y < -20) {
this._y = 410;
}
}
}
Instance of Symbol 241 MovieClip "circulo1" in Frame 17
/* no clip actions */
Instance of Symbol 220 MovieClip "cfire2" in Frame 17
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
this._y = this._y + 2;
}
if (this._y > 420) {
this._y = -50;
}
}
Frame 18
stop();
var xp1 = 63.5;
var vsi = 0;
var cirfn = 0;
var tiempo = 30;
var zx = 0;
var levelup = 0;
var levelpoints1 = 1000;
var coins1 = 0;
var xc = 0;
var tbonus = 0;
var i = 0;
var cbonus = 0;
var b = 0;
var scoresum = 0;
var xmov = 0;
var ymov = 0;
var ymov2 = 0;
var xmov2 = 0;
var firen = 0;
nivel = 14;
_root.cfire1.fire = 0;
_root.cfire2.fire = 0;
_root.bola.inicx = 30;
_root.bola.inicy = 67;
_root.bola.px = 583;
_root.bola.py = 43;
_root.coin11._x = 246;
_root.coin11._y = 200;
_root.cirfire1._x = 47;
_root.cirfire1._y = 302;
_root.cirfire1.inicx = 47;
_root.cirfire1.inicy = 302;
_root.cirfire2.inicx = 273;
_root.cirfire2.inicy = 45;
_root.bola.inmune._visible = false;
var enemies = new Array("innerbh", "barra1", "cfire1", "barra3");
var enemies2 = new Array("ds1");
this.onEnterFrame = function () {
zx = zx + 1;
if (zx == 30) {
if (levelup == 0) {
zx = 0;
if (tiempo >= 1) {
tiempo = tiempo + -1;
_root.tiempotext.text = tiempo;
}
if (tiempo == 0) {
if (_root.fin == 0) {
_root.fin = 1;
_root.bola.activo = 0;
this.attachMovie("gameover", "gover", _root.getNextHighestDepth(), {_x:350, _y:200});
_root.lastscore = (_root.score + _root.coins1) - (_root.lives * 100);
_root.scoring();
}
}
}
}
if (_root.bola.hitTest(_root.coin11)) {
_root.coins1 = _root.coins1 + 1000;
if (_root.musicbut.nomusic._visible == false) {
_root.coinsound.start(0, 1);
}
_root.coin11._y = 500;
}
for (var _local3 in enemies) {
if (_root.bola.inbola.hitTest(_root[_root.enemies[_local3]])) {
if (_root.bola.activo == 1) {
if (_root.bola.inmune._visible == false) {
if (_root.levelup == 0) {
_root.bola._x = _root.bola.inicx;
_root.bola._y = _root.bola.inicy;
_root.bola.activo = 0;
_root.cirfire1._x = _root.cirfire1.inicx;
_root.cirfire1._y = _root.cirfire1.inicy;
_root.lives = _root.lives + 1;
}
}
}
}
}
for (var _local4 in enemies2) {
if (_root.bola.inbola.hitTest(_root[_root.enemies2[_local4]].dentro)) {
if (_root.bola.activo == 1) {
if (_root.bola.inmune._visible == false) {
if (_root.levelup == 0) {
_root.bola._x = _root.bola.inicx;
_root.bola._y = _root.bola.inicy;
_root.bola.activo = 0;
_root.lives = _root.lives + 1;
}
}
}
}
}
if (_root.bola.hitTest(_root.inmunidad1)) {
_root.bola.inmune._visible = true;
_root.inmunidad1._y = 500;
}
if (_root.bola.hitTest(_root.final.dentro)) {
if (_root.levelup == 0) {
if (_root.musicbut.nomusic._visible == false) {
levelsup.start(0, 1);
}
}
_root.levelup = 1;
this.attachMovie("scoreplus", "scoreplus" + nivel, -600, {_x:350, _y:200});
_root["scoreplus" + nivel].estescore.text = score;
}
};
this.onMouseDown = function () {
if (_root.bola.hitTest(_xmouse, _ymouse, true)) {
_root.bola.activo = 1;
}
if (_root.musicbut.hitTest(_xmouse, _ymouse, true)) {
if (_root.musicbut.nomusic._visible == false) {
_root.musicbut.nomusic._visible = true;
lamusica.stop();
} else {
lamusica.start(0, 1000);
_root.musicbut.nomusic._visible = false;
}
}
};
bola.onEnterFrame = function () {
var _local4 = _root._xmouse;
var _local3 = _root._ymouse;
if (this.activo == 1) {
if (_root.levelup == 0) {
this._x = this._x - ((this._x - _local4) / 6);
this._y = this._y - ((this._y - _local3) / 6);
}
if (this.inmune._visible == true) {
vsi = vsi + 1;
if (vsi >= 90) {
this.inmune._visible = false;
vsi = 0;
}
}
}
};
Instance of Symbol 120 MovieClip "ds1" in Frame 18
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
_root.xmov = _root.xmov + 0.05;
_root.ymov = _root.ymov + 0.07;
this._x = this._x + (5 * Math.sin(_root.xmov));
this._y = this._y + (5 * Math.cos(_root.ymov));
if (this._y < -20) {
this._y = 410;
}
}
}
Instance of Symbol 269 MovieClip "bhole1" in Frame 18
onClipEvent (enterFrame) {
if (_root.bola.activo == 1) {
if (_root.levelup == 0) {
this.desx = _root.bola._x;
this.desy = _root.bola._y;
this.distot = Math.sqrt(((this._y - this.desy) * (this._y - this.desy)) + ((this._x - this.desx) * (this._x - this.desx)));
if (this.distot < 500) {
this.speed = 3500 / this.distot;
this.sinx = (this._x - this.desx) / this.distot;
this.cosy = (this._y - this.desy) / this.distot;
_root.bola._x = _root.bola._x + ((this.speed * this.sinx) + 2);
_root.bola._y = _root.bola._y + ((this.speed * this.cosy) + 2);
}
}
}
}
Instance of Symbol 54 MovieClip "barra1" in Frame 18
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
this._x = this._x + -7;
}
if (this._x < -260) {
this._x = 660;
}
}
Instance of Symbol 220 MovieClip "cfire1" in Frame 18
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
this._y = this._y + 7;
}
if (this._y > 420) {
this._y = -50;
}
}
Instance of Symbol 111 MovieClip "barra3" in Frame 18
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
this._y = this._y + -2;
}
if (this._y < -300) {
this._y = 420;
}
}
Frame 19
stop();
var xp1 = 63.5;
var vsi = 0;
var cirfn = 0;
var tiempo = 30;
var zx = 0;
var levelup = 0;
var levelpoints1 = 1000;
var coins1 = 0;
var xc = 0;
var tbonus = 0;
var i = 0;
var cbonus = 0;
var b = 0;
var scoresum = 0;
var xmov = 0;
var ymov = 0;
var ymov2 = 0;
var xmov2 = 0;
var firen = 0;
nivel = 15;
_root.cfire1.fire = 0;
_root.cfire2.fire = 0;
_root.bola.inicx = 583;
_root.bola.inicy = 43;
_root.bola.px = 97;
_root.bola.py = 304;
_root.coin11._x = 35;
_root.coin11._y = 85;
_root.coin15._x = 95;
_root.coin15._y = 85;
_root.cirfire1._x = 124;
_root.cirfire1._y = 230;
_root.circulo1.inicx = 555;
_root.circulo1.inicy = 300;
_root.cirfire1.inicx = 124;
_root.cirfire1.inicy = 230;
_root.bola.inmune._visible = false;
if (lamusica.position > 0) {
_root.musicbut.nomusic._visible = false;
}
var enemies = new Array("cirfire1", "cfire1", "innerbh", "barra1", "barra2", "circulo1");
this.onEnterFrame = function () {
zx = zx + 1;
if (zx == 30) {
if (levelup == 0) {
zx = 0;
if (tiempo >= 1) {
tiempo = tiempo + -1;
_root.tiempotext.text = tiempo;
}
if (tiempo == 0) {
if (_root.fin == 0) {
_root.fin = 1;
_root.bola.activo = 0;
this.attachMovie("gameover", "gover", _root.getNextHighestDepth(), {_x:350, _y:200});
_root.lastscore = (_root.score + _root.coins1) - (_root.lives * 100);
_root.scoring();
}
}
}
}
if (_root.bola.hitTest(_root.coin11)) {
_root.coins1 = _root.coins1 + 1000;
if (_root.musicbut.nomusic._visible == false) {
_root.coinsound.start(0, 1);
}
_root.coin11._y = 500;
}
if (_root.bola.hitTest(_root.coin15)) {
_root.coins1 = _root.coins1 + 1000;
if (_root.musicbut.nomusic._visible == false) {
_root.coinsound.start(0, 1);
}
_root.coin15._y = 500;
}
for (var _local3 in enemies) {
if (_root.bola.inbola.hitTest(_root[_root.enemies[_local3]])) {
if (_root.bola.activo == 1) {
if (_root.bola.inmune._visible == false) {
if (_root.levelup == 0) {
_root.bola._x = _root.bola.inicx;
_root.bola._y = _root.bola.inicy;
_root.bola.activo = 0;
_root.circulo1._x = _root.circulo1.inicx;
_root.circulo1._y = _root.circulo1.inicy;
_root.cirfire1._x = _root.cirfire1.inicx;
_root.cirfire1._y = _root.cirfire1.inicy;
_root.lives = _root.lives + 1;
}
}
}
}
}
if (_root.bola.hitTest(_root.inmunidad1)) {
_root.bola.inmune._visible = true;
_root.inmunidad1._y = 500;
}
if (_root.bola.hitTest(_root.final.dentro)) {
if (_root.levelup == 0) {
if (_root.musicbut.nomusic._visible == false) {
levelsup.start(0, 1);
}
}
_root.levelup = 1;
this.attachMovie("scoreplus", "scoreplus" + nivel, -600, {_x:350, _y:200});
_root["scoreplus" + nivel].estescore.text = score;
}
};
this.onMouseDown = function () {
if (_root.bola.hitTest(_xmouse, _ymouse, true)) {
_root.bola.activo = 1;
}
if (_root.musicbut.hitTest(_xmouse, _ymouse, true)) {
if (_root.musicbut.nomusic._visible == false) {
_root.musicbut.nomusic._visible = true;
lamusica.stop();
} else {
lamusica.start(0, 1000);
_root.musicbut.nomusic._visible = false;
}
}
};
bola.onEnterFrame = function () {
var _local4 = _root._xmouse;
var _local3 = _root._ymouse;
if (this.activo == 1) {
if (_root.levelup == 0) {
this._x = this._x - ((this._x - _local4) / 6);
this._y = this._y - ((this._y - _local3) / 6);
}
if (this.inmune._visible == true) {
vsi = vsi + 1;
if (vsi >= 90) {
this.inmune._visible = false;
vsi = 0;
}
}
}
};
Instance of Symbol 111 MovieClip "barra1" in Frame 19
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
this._x = this._x + -3;
}
if (this._x < -260) {
this._x = 660;
}
}
Instance of Symbol 241 MovieClip "circulo1" in Frame 19
/* no clip actions */
Instance of Symbol 106 MovieClip "barra2" in Frame 19
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
this._y = this._y + -5;
}
if (this._y < -300) {
this._y = 420;
}
}
Instance of Symbol 220 MovieClip "cfire1" in Frame 19
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
this._y = this._y + 5;
}
if (this._y > 420) {
this._y = -50;
}
}
Frame 20
stop();
var xp1 = 63.5;
var vsi = 0;
var cirfn = 0;
var tiempo = 30;
var zx = 0;
var levelup = 0;
var levelpoints1 = 1000;
var coins1 = 0;
var xc = 0;
var tbonus = 0;
var i = 0;
var cbonus = 0;
var b = 0;
var scoresum = 0;
var xmov = 0;
var ymov = 0;
var ymov2 = 0;
var xmov2 = 0;
var firen = 0;
nivel = 16;
_root.cfire1.fire = 0;
_root.cfire2.fire = 0;
_root.bola.inicx = 97;
_root.bola.inicy = 304;
_root.bola.px = 566;
_root.bola.py = 302;
_root.coin11._x = 35;
_root.coin11._y = 205;
_root.coin15._x = 95;
_root.coin15._y = 205;
_root.cirfire1._x = 425;
_root.cirfire1._y = 68;
_root.circulo1._x = 542;
_root.circulo1._y = 109;
_root.circulo1.inicx = 542;
_root.circulo1.inicy = 109;
_root.cirfire1.inicx = 425;
_root.cirfire1.inicy = 68;
_root.bola.inmune._visible = false;
if (lamusica.position > 0) {
_root.musicbut.nomusic._visible = false;
}
var enemies = new Array("cirfire1", "cfire1", "innerbh", "barra1", "barra2", "barra3", "circulo1", "cuadro1");
var enemies2 = new Array("ds1");
this.onEnterFrame = function () {
zx = zx + 1;
if (zx == 30) {
if (levelup == 0) {
zx = 0;
if (tiempo >= 1) {
tiempo = tiempo + -1;
_root.tiempotext.text = tiempo;
}
if (tiempo == 0) {
if (_root.fin == 0) {
_root.fin = 1;
_root.bola.activo = 0;
this.attachMovie("gameover", "gover", _root.getNextHighestDepth(), {_x:350, _y:200});
_root.lastscore = (_root.score + _root.coins1) - (_root.lives * 100);
_root.scoring();
}
}
}
}
if (_root.bola.hitTest(_root.coin11)) {
_root.coins1 = _root.coins1 + 1000;
if (_root.musicbut.nomusic._visible == false) {
_root.coinsound.start(0, 1);
}
_root.coin11._y = 500;
}
if (_root.bola.hitTest(_root.coin15)) {
_root.coins1 = _root.coins1 + 1000;
if (_root.musicbut.nomusic._visible == false) {
_root.coinsound.start(0, 1);
}
_root.coin15._y = 500;
}
for (var _local3 in enemies) {
if (_root.bola.inbola.hitTest(_root[_root.enemies[_local3]])) {
if (_root.bola.activo == 1) {
if (_root.bola.inmune._visible == false) {
if (_root.levelup == 0) {
_root.bola._x = _root.bola.inicx;
_root.bola._y = _root.bola.inicy;
_root.bola.activo = 0;
_root.circulo1._x = _root.circulo1.inicx;
_root.circulo1._y = _root.circulo1.inicy;
_root.cirfire1._x = _root.cirfire1.inicx;
_root.cirfire1._y = _root.cirfire1.inicy;
_root.lives = _root.lives + 1;
}
}
}
}
}
for (var _local4 in enemies2) {
if (_root.bola.inbola.hitTest(_root[_root.enemies2[_local4]].dentro)) {
if (_root.bola.activo == 1) {
if (_root.bola.inmune._visible == false) {
if (_root.levelup == 0) {
_root.bola._x = _root.bola.inicx;
_root.bola._y = _root.bola.inicy;
_root.bola.activo = 0;
_root.lives = _root.lives + 1;
}
}
}
}
}
if (_root.bola.hitTest(_root.inmunidad1)) {
_root.bola.inmune._visible = true;
_root.inmunidad1._y = 500;
}
if (_root.bola.hitTest(_root.final.dentro)) {
if (_root.levelup == 0) {
if (_root.musicbut.nomusic._visible == false) {
levelsup.start(0, 1);
}
}
_root.levelup = 1;
this.attachMovie("scoreplus", "scoreplus" + nivel, -600, {_x:350, _y:200});
_root["scoreplus" + nivel].estescore.text = score;
}
};
this.onMouseDown = function () {
if (_root.bola.hitTest(_xmouse, _ymouse, true)) {
_root.bola.activo = 1;
}
if (_root.musicbut.hitTest(_xmouse, _ymouse, true)) {
if (_root.musicbut.nomusic._visible == false) {
_root.musicbut.nomusic._visible = true;
lamusica.stop();
} else {
lamusica.start(0, 1000);
_root.musicbut.nomusic._visible = false;
}
}
};
bola.onEnterFrame = function () {
var _local4 = _root._xmouse;
var _local3 = _root._ymouse;
if (this.activo == 1) {
if (_root.levelup == 0) {
this._x = this._x - ((this._x - _local4) / 6);
this._y = this._y - ((this._y - _local3) / 6);
}
if (this.inmune._visible == true) {
vsi = vsi + 1;
if (vsi >= 90) {
this.inmune._visible = false;
vsi = 0;
}
}
}
};
Instance of Symbol 111 MovieClip "barra1" in Frame 20
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
this._x = this._x + -7;
}
if (this._x < -260) {
this._x = 660;
}
}
Instance of Symbol 220 MovieClip "cfire1" in Frame 20
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
this._y = this._y + 5;
}
if (this._y > 420) {
this._y = -50;
}
}
Instance of Symbol 209 MovieClip "cuadro1" in Frame 20
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
_root.ymov = _root.ymov + 0.07;
this._y = this._y + (5 * Math.cos(_root.ymov));
this._x = this._x + -5;
if (this._x < -20) {
this._x = 670;
}
}
}
Instance of Symbol 120 MovieClip "ds1" in Frame 20
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
_root.xmov = _root.xmov + 0.06;
_root.ymov = _root.ymov + 0.04;
this._x = this._x + (random(10) * Math.sin(_root.xmov));
this._y = this._y + (5 * Math.cos(_root.ymov));
if (this._y < -20) {
this._y = 410;
}
}
}
Instance of Symbol 106 MovieClip "barra2" in Frame 20
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
this._y = this._y + -3;
}
if (this._y < -300) {
this._y = 420;
}
}
Instance of Symbol 54 MovieClip "barra3" in Frame 20
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
this._y = this._y + 6;
}
if (this._y > 420) {
this._y = -300;
}
}
Frame 21
stop();
var xp1 = 63.5;
var vsi = 0;
var dfiren = 0;
var cirfn = 0;
var tiempo = 30;
var zx = 0;
var levelup = 0;
var levelpoints1 = 1000;
var coins1 = 0;
var xc = 0;
var tbonus = 0;
var i = 0;
var cbonus = 0;
var b = 0;
var scoresum = 0;
var xmov = 0;
var ymov = 0;
var ymov2 = 0;
var xmov2 = 0;
var firen = 0;
nivel = 17;
_root.cfire1.fire = 0;
_root.cfire2.fire = 0;
_root.bola.inicx = 566;
_root.bola.inicy = 302;
_root.bola.px = 39;
_root.bola.py = 298;
_root.coin11._x = 496;
_root.coin11._y = 152;
_root.df2._x = 573;
_root.df2._y = 52;
_root.df1._x = 437;
_root.df1._y = 52;
_root.df2.inicx = 573;
_root.df2.inicy = 52;
_root.df1.inicx = 437;
_root.df1.inicy = 52;
_root.bola.inmune._visible = false;
var enemies = new Array("df1", "df2", "barra1", "barra2", "barra3", "cuadro1", "cuadro2");
var enemies2 = new Array("ds1");
this.onEnterFrame = function () {
zx = zx + 1;
if (zx == 30) {
if (levelup == 0) {
zx = 0;
if (tiempo >= 1) {
tiempo = tiempo + -1;
_root.tiempotext.text = tiempo;
}
if (tiempo == 0) {
if (_root.fin == 0) {
_root.fin = 1;
_root.bola.activo = 0;
this.attachMovie("gameover", "gover", _root.getNextHighestDepth(), {_x:350, _y:200});
_root.lastscore = (_root.score + _root.coins1) - (_root.lives * 100);
_root.scoring();
}
}
}
}
if (_root.bola.hitTest(_root.coin11)) {
_root.coins1 = _root.coins1 + 1000;
if (_root.musicbut.nomusic._visible == false) {
_root.coinsound.start(0, 1);
}
_root.coin11._y = 500;
}
if (_root.bola.hitTest(_root.coin15)) {
_root.coins1 = _root.coins1 + 1000;
if (_root.musicbut.nomusic._visible == false) {
_root.coinsound.start(0, 1);
}
_root.coin15._y = 500;
}
for (var _local3 in enemies) {
if (_root.bola.inbola.hitTest(_root[_root.enemies[_local3]])) {
if (_root.bola.activo == 1) {
if (_root.bola.inmune._visible == false) {
if (_root.levelup == 0) {
_root.bola._x = _root.bola.inicx;
_root.bola._y = _root.bola.inicy;
_root.bola.activo = 0;
_root.df1._x = _root.df1.inicx;
_root.df1._y = _root.df1.inicy;
_root.df2._x = _root.df2.inicx;
_root.df2._y = _root.df2.inicy;
_root.lives = _root.lives + 1;
}
}
}
}
}
for (var _local4 in enemies2) {
if (_root.bola.inbola.hitTest(_root[_root.enemies2[_local4]].dentro)) {
if (_root.bola.activo == 1) {
if (_root.bola.inmune._visible == false) {
if (_root.levelup == 0) {
_root.bola._x = _root.bola.inicx;
_root.bola._y = _root.bola.inicy;
_root.bola.activo = 0;
_root.lives = _root.lives + 1;
}
}
}
}
}
if (_root.barra2.hitTest(_root.bola._x + (_root.bola._width / 2), _root.bola._y, true)) {
if (_root.bola.activo == 1) {
_root.bola._x = _root.bola.inicx;
_root.bola._y = _root.bola.inicy;
_root.bola.activo = 0;
_root.df1._x = _root.df1.inicx;
_root.df1._y = _root.df1.inicy;
_root.df2._x = _root.df2.inicx;
_root.df2._y = _root.df2.inicy;
_root.lives = _root.lives + 1;
}
}
if (_root.barra2.hitTest(_root.bola._x - (_root.bola._width / 2), _root.bola._y, true)) {
if (_root.bola.activo == 1) {
_root.bola._x = _root.bola.inicx;
_root.bola._y = _root.bola.inicy;
_root.bola.activo = 0;
_root.df1._x = _root.df1.inicx;
_root.df1._y = _root.df1.inicy;
_root.df2._x = _root.df2.inicx;
_root.df2._y = _root.df2.inicy;
_root.lives = _root.lives + 1;
}
}
if (_root.barra2.hitTest(_root.bola._x, _root.bola._y + (_root.bola._height / 2), true)) {
if (_root.bola.activo == 1) {
_root.bola._x = _root.bola.inicx;
_root.bola._y = _root.bola.inicy;
_root.bola.activo = 0;
_root.df1._x = _root.df1.inicx;
_root.df1._y = _root.df1.inicy;
_root.df2._x = _root.df2.inicx;
_root.df2._y = _root.df2.inicy;
_root.lives = _root.lives + 1;
}
}
if (_root.barra2.hitTest(_root.bola._x, _root.bola._y - (_root.bola._height / 2), true)) {
if (_root.bola.activo == 1) {
_root.bola._x = _root.bola.inicx;
_root.bola._y = _root.bola.inicy;
_root.bola.activo = 0;
_root.df1._x = _root.df1.inicx;
_root.df1._y = _root.df1.inicy;
_root.df2._x = _root.df2.inicx;
_root.df2._y = _root.df2.inicy;
_root.lives = _root.lives + 1;
}
}
if (_root.bola.hitTest(_root.inmunidad1)) {
_root.bola.inmune._visible = true;
_root.inmunidad1._y = 500;
}
if (_root.bola.hitTest(_root.final.dentro)) {
if (_root.levelup == 0) {
if (_root.musicbut.nomusic._visible == false) {
levelsup.start(0, 1);
}
}
_root.levelup = 1;
this.attachMovie("scoreplus", "scoreplus" + nivel, -600, {_x:350, _y:200});
_root["scoreplus" + nivel].estescore.text = score;
}
};
this.onMouseDown = function () {
if (_root.bola.hitTest(_xmouse, _ymouse, true)) {
_root.bola.activo = 1;
}
if (_root.musicbut.hitTest(_xmouse, _ymouse, true)) {
if (_root.musicbut.nomusic._visible == false) {
_root.musicbut.nomusic._visible = true;
lamusica.stop();
} else {
lamusica.start(0, 1000);
_root.musicbut.nomusic._visible = false;
}
}
};
bola.onEnterFrame = function () {
var _local4 = _root._xmouse;
var _local3 = _root._ymouse;
if (this.activo == 1) {
if (_root.levelup == 0) {
this._x = this._x - ((this._x - _local4) / 6);
this._y = this._y - ((this._y - _local3) / 6);
}
if (this.inmune._visible == true) {
vsi = vsi + 1;
if (vsi >= 90) {
this.inmune._visible = false;
vsi = 0;
}
}
}
};
Instance of Symbol 111 MovieClip "barra3" in Frame 21
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
this._y = this._y + 7;
}
if (this._y > 420) {
this._y = -300;
}
}
Instance of Symbol 116 MovieClip "barra1" in Frame 21
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
this._x = this._x + -7;
}
if (this._x < -260) {
this._x = 660;
}
}
Instance of Symbol 106 MovieClip "barra2" in Frame 21
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
this._y = this._y + 6;
this._x = this._x + -6;
}
if (this._y > 420) {
this._y = -200.1;
this._x = 665.1;
}
}
Instance of Symbol 120 MovieClip "ds1" in Frame 21
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
_root.xmov2 = _root.xmov2 + 0.07;
this._y = this._y + (7 * Math.sin(_root.xmov2));
this._x = this._x + -3;
if (this._x < -20) {
this._x = 670;
}
}
}
Instance of Symbol 209 MovieClip "cuadro2" in Frame 21
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
_root.xmov = _root.xmov + 0.05;
_root.ymov = _root.ymov + 0.07;
this._x = this._x + (5 * Math.sin(_root.xmov));
this._y = this._y + (5 * Math.cos(_root.ymov));
if (this._y < -20) {
this._y = 410;
}
}
}
Frame 22
stop();
var xp1 = 63.5;
var vsi = 0;
var dfiren = 0;
var cirfn = 0;
var tiempo = 30;
var zx = 0;
var levelup = 0;
var levelpoints1 = 1000;
var coins1 = 0;
var xc = 0;
var tbonus = 0;
var i = 0;
var cbonus = 0;
var b = 0;
var scoresum = 0;
var xmov = 0;
var ymov = 0;
var ymov2 = 0;
var xmov2 = 0;
var firen = 0;
nivel = 18;
_root.cfire1.fire = 0;
_root.cfire2.fire = 0;
_root.bola.inicx = 39;
_root.bola.inicy = 298;
_root.bola.px = 408;
_root.bola.py = 249;
_root.cirfire1._x = 13;
_root.cirfire1._y = 44;
_root.cirfire2._x = 402;
_root.cirfire2._y = 40;
_root.cirfire1.inicx = 13;
_root.cirfire1.inicy = 44;
_root.cirfire2.inicx = 402;
_root.cirfire2.inicy = 40;
_root.bola.inmune._visible = false;
var enemies = new Array("cirfire1", "cirfire2", "barra1", "barra2", "innerbh", "innerbh2", "cfire1", "cfire2");
this.onEnterFrame = function () {
zx = zx + 1;
if (zx == 30) {
if (levelup == 0) {
zx = 0;
if (tiempo >= 1) {
tiempo = tiempo + -1;
_root.tiempotext.text = tiempo;
}
if (tiempo == 0) {
if (_root.fin == 0) {
_root.fin = 1;
_root.bola.activo = 0;
this.attachMovie("gameover", "gover", _root.getNextHighestDepth(), {_x:350, _y:200});
_root.lastscore = (_root.score + _root.coins1) - (_root.lives * 100);
_root.scoring();
}
}
}
}
var _local3 = 20;
while (_local3 <= 26) {
if (_root.bola.hitTest(_root["coin" + _local3])) {
_root.coins1 = _root.coins1 + 1000;
if (_root.musicbut.nomusic._visible == false) {
_root.coinsound.start(0, 1);
}
_root["coin" + _local3].swapDepths(_root.getNextHighestDepth());
_root["coin" + _local3].removeMovieClip();
}
_local3++;
}
for (var _local4 in enemies) {
if (_root.bola.inbola.hitTest(_root[_root.enemies[_local4]])) {
if (_root.bola.activo == 1) {
if (((_root.bola.inmune._visible == false) or (_root.enemies[_local4] == "innerbh2")) or (_root.enemies[_local4] == "innerbh")) {
if (_root.levelup == 0) {
_root.bola._x = _root.bola.inicx;
_root.bola._y = _root.bola.inicy;
_root.bola.activo = 0;
_root.cirfire1._x = _root.cirfire1.inicx;
_root.cirfire1._y = _root.cirfire1.inicy;
_root.cirfire2._x = _root.cirfire2.inicx;
_root.cirfire2._y = _root.cirfire2.inicy;
_root.lives = _root.lives + 1;
}
}
}
}
}
if (_root.bola.hitTest(_root.inmunidad1)) {
_root.bola.inmune._visible = true;
_root.inmunidad1._y = 500;
}
if (_root.bola.hitTest(_root.final.dentro)) {
if (_root.levelup == 0) {
if (_root.musicbut.nomusic._visible == false) {
levelsup.start(0, 1);
}
}
_root.levelup = 1;
this.attachMovie("scoreplus", "scoreplus" + nivel, -600, {_x:350, _y:200});
_root["scoreplus" + nivel].estescore.text = score;
}
};
this.onMouseDown = function () {
if (_root.bola.hitTest(_xmouse, _ymouse, true)) {
_root.bola.activo = 1;
}
if (_root.musicbut.hitTest(_xmouse, _ymouse, true)) {
if (_root.musicbut.nomusic._visible == false) {
_root.musicbut.nomusic._visible = true;
lamusica.stop();
} else {
lamusica.start(0, 1000);
_root.musicbut.nomusic._visible = false;
}
}
};
bola.onEnterFrame = function () {
var _local4 = _root._xmouse;
var _local3 = _root._ymouse;
if (this.activo == 1) {
if (_root.levelup == 0) {
this._x = this._x - ((this._x - _local4) / 6);
this._y = this._y - ((this._y - _local3) / 6);
}
if (this.inmune._visible == true) {
vsi = vsi + 1;
if (vsi >= 150) {
this.inmune._visible = false;
vsi = 0;
}
}
}
};
Instance of Symbol 106 MovieClip "barra2" in Frame 22
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
this._y = this._y + 7;
}
if (this._y > 420) {
this._y = -300;
}
}
Instance of Symbol 54 MovieClip "barra1" in Frame 22
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
this._x = this._x + -7;
}
if (this._x < -260) {
this._x = 660;
}
}
Instance of Symbol 269 MovieClip "bhole1" in Frame 22
onClipEvent (enterFrame) {
if (_root.bola.activo == 1) {
if (_root.levelup == 0) {
this.desx = _root.bola._x;
this.desy = _root.bola._y;
this.distot = Math.sqrt(((this._y - this.desy) * (this._y - this.desy)) + ((this._x - this.desx) * (this._x - this.desx)));
if (this.distot < 500) {
this.speed = 3500 / this.distot;
this.sinx = (this._x - this.desx) / this.distot;
this.cosy = (this._y - this.desy) / this.distot;
_root.bola._x = _root.bola._x + ((this.speed * this.sinx) + 2);
_root.bola._y = _root.bola._y + ((this.speed * this.cosy) + 2);
}
}
}
}
Instance of Symbol 220 MovieClip "cfire1" in Frame 22
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
this._y = this._y + 5;
this._x = this._x + 3;
}
if (this._y > 420) {
this._y = -50;
}
if (this._x > 670) {
this._x = 0;
}
}
Instance of Symbol 269 MovieClip "bhole2" in Frame 22
onClipEvent (enterFrame) {
if (_root.bola.activo == 1) {
if (_root.levelup == 0) {
this.desx = _root.bola._x;
this.desy = _root.bola._y;
this.distot = Math.sqrt(((this._y - this.desy) * (this._y - this.desy)) + ((this._x - this.desx) * (this._x - this.desx)));
if (this.distot < 500) {
this.speed = 3500 / this.distot;
this.sinx = (this._x - this.desx) / this.distot;
this.cosy = (this._y - this.desy) / this.distot;
_root.bola._x = _root.bola._x + ((this.speed * this.sinx) + 2);
_root.bola._y = _root.bola._y + ((this.speed * this.cosy) + 2);
}
}
}
}
Instance of Symbol 220 MovieClip "cfire2" in Frame 22
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
this._x = this._x + 7;
}
if (this._x > 670) {
this._x = -20;
}
}
Frame 23
stop();
var xp1 = 63.5;
var vsi = 0;
var dfiren = 0;
var cirfn = 0;
var tiempo = 30;
var zx = 0;
var levelup = 0;
var levelpoints1 = 1000;
var coins1 = 0;
var xc = 0;
var tbonus = 0;
var i = 0;
var cbonus = 0;
var b = 0;
var scoresum = 0;
var xmov = 0;
var ymov = 0;
var ymov2 = 0;
var xmov2 = 0;
var firen = 0;
nivel = 19;
_root.coin11._x = 44;
_root.coin11._y = 300;
_root.cfire1.fire = 0;
_root.cfire2.fire = 0;
_root.bola.inicx = 408;
_root.bola.inicy = 249;
_root.bola.px = 506;
_root.bola.py = 338;
_root.df1._x = 605;
_root.df1._y = 350;
_root.circulo1._x = 402;
_root.circulo1._y = 50;
_root.df1.inicx = 605;
_root.df1.inicy = 350;
_root.circulo1.inicx = 402;
_root.circulo1.inicy = 50;
_root.bola.inmune._visible = false;
var enemies = new Array("barra1", "barra2", "innerbh", "cfire1", "circulo1", "df1");
var enemies2 = new Array("ds1");
this.onEnterFrame = function () {
zx = zx + 1;
if (zx == 30) {
if (levelup == 0) {
zx = 0;
if (tiempo >= 1) {
tiempo = tiempo + -1;
_root.tiempotext.text = tiempo;
}
if (tiempo == 0) {
if (_root.fin == 0) {
_root.fin = 1;
_root.bola.activo = 0;
this.attachMovie("gameover", "gover", _root.getNextHighestDepth(), {_x:350, _y:200});
_root.lastscore = (_root.score + _root.coins1) - (_root.lives * 100);
_root.scoring();
}
}
}
}
if (_root.bola.hitTest(_root.coin11)) {
_root.coins1 = _root.coins1 + 1000;
if (_root.musicbut.nomusic._visible == false) {
_root.coinsound.start(0, 1);
}
_root.coin11._y = 500;
}
for (var _local3 in enemies) {
if (_root.bola.inbola.hitTest(_root[_root.enemies[_local3]])) {
if (_root.bola.activo == 1) {
if (_root.bola.inmune._visible == false) {
if (_root.levelup == 0) {
_root.bola._x = _root.bola.inicx;
_root.bola._y = _root.bola.inicy;
_root.bola.activo = 0;
_root.circulo1._x = _root.circulo1.inicx;
_root.circulo1._y = _root.circulo1.inicy;
_root.df1._x = _root.df1.inicx;
_root.df1._y = _root.df1.inicy;
_root.lives = _root.lives + 1;
}
}
}
}
}
for (var _local4 in enemies2) {
if (_root.bola.inbola.hitTest(_root[_root.enemies2[_local4]].dentro)) {
if (_root.bola.activo == 1) {
if (_root.bola.inmune._visible == false) {
if (_root.levelup == 0) {
_root.bola._x = _root.bola.inicx;
_root.bola._y = _root.bola.inicy;
_root.bola.activo = 0;
_root.circulo1._x = _root.circulo1.inicx;
_root.circulo1._y = _root.circulo1.inicy;
_root.df1._x = _root.df1.inicx;
_root.df1._y = _root.df1.inicy;
_root.lives = _root.lives + 1;
}
}
}
}
}
if (_root.bola.hitTest(_root.inmunidad1)) {
_root.bola.inmune._visible = true;
_root.inmunidad1._y = 500;
}
if (_root.bola.hitTest(_root.final.dentro)) {
if (_root.levelup == 0) {
if (_root.musicbut.nomusic._visible == false) {
levelsup.start(0, 1);
}
}
_root.levelup = 1;
this.attachMovie("scoreplus", "scoreplus" + nivel, -600, {_x:350, _y:200});
_root["scoreplus" + nivel].estescore.text = score;
}
};
this.onMouseDown = function () {
if (_root.bola.hitTest(_xmouse, _ymouse, true)) {
_root.bola.activo = 1;
}
if (_root.musicbut.hitTest(_xmouse, _ymouse, true)) {
if (_root.musicbut.nomusic._visible == false) {
_root.musicbut.nomusic._visible = true;
lamusica.stop();
} else {
lamusica.start(0, 1000);
_root.musicbut.nomusic._visible = false;
}
}
};
bola.onEnterFrame = function () {
var _local4 = _root._xmouse;
var _local3 = _root._ymouse;
if (this.activo == 1) {
if (_root.levelup == 0) {
this._x = this._x - ((this._x - _local4) / 6);
this._y = this._y - ((this._y - _local3) / 6);
}
if (this.inmune._visible == true) {
vsi = vsi + 1;
if (vsi >= 90) {
this.inmune._visible = false;
vsi = 0;
}
}
}
};
Instance of Symbol 116 MovieClip "barra2" in Frame 23
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
this._y = this._y + 7;
}
if (this._y > 420) {
this._y = -300;
}
}
Instance of Symbol 111 MovieClip "barra1" in Frame 23
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
this._x = this._x + -7;
}
if (this._x < -260) {
this._x = 660;
}
}
Instance of Symbol 120 MovieClip "ds1" in Frame 23
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
_root.xmov = _root.xmov + 0.06;
_root.ymov = _root.ymov + 0.04;
this._x = this._x + (random(10) * Math.sin(_root.xmov));
this._y = this._y + (5 * Math.cos(_root.ymov));
if (this._y < -20) {
this._y = 410;
}
}
}
Instance of Symbol 241 MovieClip "circulo1" in Frame 23
/* no clip actions */
Instance of Symbol 220 MovieClip "cfire1" in Frame 23
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
this._x = this._x + 7;
}
if (this._x > 670) {
this._x = -20;
}
}
Frame 24
stop();
var xp1 = 63.5;
var vsi = 0;
var dfiren = 0;
var cirfn = 0;
var tiempo = 30;
var zx = 0;
var levelup = 0;
var levelpoints1 = 1000;
var coins1 = 0;
var xc = 0;
var tbonus = 0;
var i = 0;
var cbonus = 0;
var b = 0;
var scoresum = 0;
var xmov = 0;
var ymov = 0;
var ymov2 = 0;
var xmov2 = 0;
var xmov3 = 0;
var firen = 0;
nivel = 20;
_root.coin11._x = 44;
_root.coin11._y = 300;
_root.cirfire1.fire = 0;
_root.cirfire2.fire = 0;
_root.cirfire1._x = 188;
_root.cirfire1._y = 40;
_root.bola.inicx = 506;
_root.bola.inicy = 338;
_root.cirfire2._x = 30;
_root.cirfire2._y = 240;
_root.cirfire1._x = 188;
_root.cirfire1._y = 40;
_root.cirfire2.inicx = 30;
_root.cirfire2.inicy = 240;
_root.cirfire1.inicx = 188;
_root.cirfire1.inicy = 40;
_root.bola.inmune._visible = false;
var enemies = new Array("barra1", "barra2", "barra3", "innerbh", "cirfire1", "cuadro1", "cuadro2", "barra4");
var enemies2 = new Array("ds1");
this.onEnterFrame = function () {
zx = zx + 1;
if (zx == 30) {
if (levelup == 0) {
zx = 0;
if (tiempo >= 1) {
tiempo = tiempo + -1;
_root.tiempotext.text = tiempo;
}
if (tiempo == 0) {
if (_root.fin == 0) {
_root.fin = 1;
_root.bola.activo = 0;
this.attachMovie("gameover", "gover", _root.getNextHighestDepth(), {_x:350, _y:200});
_root.lastscore = (_root.score + _root.coins1) - (_root.lives * 100);
_root.scoring();
}
}
}
}
var _local3 = 26;
while (_local3 <= 31) {
if (_root.bola.hitTest(_root["coin" + _local3])) {
_root.coins1 = _root.coins1 + 1000;
if (_root.musicbut.nomusic._visible == false) {
_root.coinsound.start(0, 1);
}
_root["coin" + _local3].swapDepths(_root.getNextHighestDepth());
_root["coin" + _local3].removeMovieClip();
}
_local3++;
}
for (var _local4 in enemies) {
if (_root.bola.inbola.hitTest(_root[_root.enemies[_local4]])) {
if (_root.bola.activo == 1) {
if (_root.bola.inmune._visible == false) {
if (_root.levelup == 0) {
_root.bola._x = _root.bola.inicx;
_root.bola._y = _root.bola.inicy;
_root.bola.activo = 0;
_root.cirfire1._x = _root.cirfire1.inicx;
_root.cirfire1._y = _root.cirfire1.inicy;
_root.cirfire2._x = _root.cirfire2.inicx;
_root.cirfire2._y = _root.cirfire2.inicy;
_root.lives = _root.lives + 1;
}
}
}
}
}
for (var _local5 in enemies2) {
if (_root.bola.inbola.hitTest(_root[_root.enemies2[_local5]].dentro)) {
if (_root.bola.activo == 1) {
if (_root.bola.inmune._visible == false) {
if (_root.levelup == 0) {
_root.bola._x = _root.bola.inicx;
_root.bola._y = _root.bola.inicy;
_root.bola.activo = 0;
_root.lives = _root.lives + 1;
}
}
}
}
}
if (_root.bola.hitTest(_root.inmunidad1)) {
_root.bola.inmune._visible = true;
_root.inmunidad1._y = 500;
}
if (_root.bola.hitTest(_root.final.dentro)) {
if (_root.fin == 0) {
_root.fin = 1;
if (_root.levelup == 0) {
if (_root.musicbut.nomusic._visible == false) {
levelsup.start(0, 1);
}
}
_root.levelup = 1;
this.attachMovie("lastlevel", "lastlevel20", -600, {_x:350, _y:200});
_root.lastscore = (((_root.score + 1000) + (_root.tiempo * 100)) + _root.coins1) - (_root.lives * 100);
_root.scoring();
_root.lastlevel20.estescore.text = score;
}
}
};
this.onMouseDown = function () {
if (_root.bola.hitTest(_xmouse, _ymouse, true)) {
_root.bola.activo = 1;
}
if (_root.musicbut.hitTest(_xmouse, _ymouse, true)) {
if (_root.musicbut.nomusic._visible == false) {
_root.musicbut.nomusic._visible = true;
lamusica.stop();
} else {
lamusica.start(0, 1000);
_root.musicbut.nomusic._visible = false;
}
}
};
bola.onEnterFrame = function () {
var _local4 = _root._xmouse;
var _local3 = _root._ymouse;
if (this.activo == 1) {
if (_root.levelup == 0) {
this._x = this._x - ((this._x - _local4) / 6);
this._y = this._y - ((this._y - _local3) / 6);
}
if (this.inmune._visible == true) {
vsi = vsi + 1;
if (vsi >= 90) {
this.inmune._visible = false;
vsi = 0;
}
}
}
};
Instance of Symbol 111 MovieClip "barra2" in Frame 24
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
this._y = this._y + 7;
}
if (this._y > 420) {
this._y = -300;
}
}
Instance of Symbol 54 MovieClip "barra1" in Frame 24
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
this._x = this._x + -7;
}
if (this._x < -260) {
this._x = 660;
}
}
Instance of Symbol 106 MovieClip "barra3" in Frame 24
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
this._x = this._x + 5;
}
if (this._x > 660) {
this._x = -260;
}
}
Instance of Symbol 209 MovieClip "cuadro1" in Frame 24
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
_root.xmov = _root.xmov + 0.05;
this._x = this._x + (random(15) * Math.sin(_root.xmov));
this._y = this._y + -3;
if (this._y < -20) {
this._y = 420;
}
}
}
Instance of Symbol 209 MovieClip "cuadro2" in Frame 24
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
_root.xmov3 = _root.xmov3 + 0.06;
this._x = this._x + (random(20) * Math.sin(_root.xmov));
this._y = this._y + 3;
if (this._y > 420) {
this._y = -20;
}
}
}
Instance of Symbol 116 MovieClip "barra4" in Frame 24
onClipEvent (enterFrame) {
if (_root.levelup == 0) {
this._y = this._y + -5;
}
if (this._y < -300) {
this._y = 420;
}
}
Frame 30
this.onEnterFrame = function () {
if (_root.startbtn.hitTest(_xmouse, _ymouse, true)) {
_root.startbtn.gotoAndStop(2);
} else {
_root.startbtn.gotoAndStop(1);
}
if (_root.mainbtn.hitTest(_xmouse, _ymouse, true)) {
_root.mainbtn.gotoAndStop(2);
} else {
_root.mainbtn.gotoAndStop(1);
}
};
this.onMouseDown = function () {
if (_root.startbtn.hitTest(_xmouse, _ymouse, true)) {
cusong.stop();
_root.gotoAndStop(5);
}
if (_root.mainbtn.hitTest(_xmouse, _ymouse, true)) {
cusong.stop();
_root.gotoAndStop(3);
}
};
Frame 31
this.onEnterFrame = function () {
if (_root.startbtn.hitTest(_xmouse, _ymouse, true)) {
_root.startbtn.gotoAndStop(2);
} else {
_root.startbtn.gotoAndStop(1);
}
if (_root.mainbtn.hitTest(_xmouse, _ymouse, true)) {
_root.mainbtn.gotoAndStop(2);
} else {
_root.mainbtn.gotoAndStop(1);
}
};
this.onMouseDown = function () {
if (_root.startbtn.hitTest(_xmouse, _ymouse, true)) {
cusong.stop();
_root.gotoAndStop(5);
}
if (_root.mainbtn.hitTest(_xmouse, _ymouse, true)) {
cusong.stop();
_root.gotoAndStop(3);
}
};
Symbol 37 Button
on (press) {
getURL ("http://www.gamegarage.co.uk/", "_blank", "POST");
}
Symbol 70 Button
on (press) {
_root.score = ((_root.score + _root.levelpoints1) + (_root.tiempo * 100)) + _root.coins1;
_root.bola.activo = 0;
_root.bola._x = _root.bola.px;
_root.bola._y = _root.bola.py;
_root.nextFrame();
_root["scoreplus" + _root.nivel].swapDepths(_root.getNextHighestDepth());
_root["scoreplus" + _root.nivel].removeMovieClip();
}
Symbol 82 MovieClip [scoreplus] Frame 1
this.onEnterFrame = function () {
_root.xc = _root.xc + 1;
if (_root.xc >= 5) {
_root.xc = 0;
if (_root.i < _root.tiempo) {
_root.i = _root.i + 1;
_root.tbonus = _root.tbonus + 100;
}
if (_root.b < (_root.coins1 / 1000)) {
_root.b = _root.b + 1;
_root.cbonus = _root.cbonus + 1000;
}
_root.scoresum = ((_root.score + _root.levelpoints1) + _root.tbonus) + _root.cbonus;
}
};
Symbol 86 Button
on (press) {
_root.tiempo = 30;
_root.gotoAndStop(4);
_root.gover.removeMovieClip();
stopAllSounds();
}
Symbol 88 Button
on (press) {
_root.gotoAndStop(3);
_root.gover.removeMovieClip();
}
Symbol 90 Button
on (press) {
getURL ("http://www.gamegarage.co.uk/", "_blank", "POST");
}
Symbol 101 MovieClip [lastlevel] Frame 1
this.onEnterFrame = function () {
_root.xc = _root.xc + 1;
if (_root.xc >= 3) {
_root.xc = 0;
if (_root.i < _root.tiempo) {
_root.i = _root.i + 1;
_root.tbonus = _root.tbonus + 100;
}
if (_root.b < (_root.coins1 / 1000)) {
_root.b = _root.b + 1;
_root.cbonus = _root.cbonus + 1000;
}
if (_root.lo < _root.lives) {
_root.lo = _root.lo + 1;
_root.livesbonus = _root.livesbonus + 100;
}
_root.scoresum = (((_root.score + _root.levelpoints1) + _root.tbonus) + _root.cbonus) - _root.livesbonus;
}
};
Symbol 128 MovieClip Frame 1
stop();
Symbol 141 MovieClip Frame 1
stop();
Symbol 141 MovieClip Frame 2
stop();
Symbol 150 MovieClip Frame 1
stop();
Symbol 150 MovieClip Frame 2
stop();
Symbol 153 MovieClip Frame 1
stop();
Symbol 153 MovieClip Frame 2
stop();
Symbol 161 MovieClip [gameover] Frame 1
this.onEnterFrame = function () {
_root.bola.activo = 0;
_root.xc = _root.xc + 1;
if (_root.xc >= 3) {
_root.xc = 0;
if (_root.i < _root.tiempo) {
_root.i = _root.i + 1;
_root.tbonus = _root.tbonus + 100;
}
if (_root.b < (_root.coins1 / 1000)) {
_root.b = _root.b + 1;
_root.cbonus = _root.cbonus + 1000;
}
if (_root.lo < _root.lives) {
_root.lo = _root.lo + 1;
_root.livesbonus = _root.livesbonus + 100;
}
_root.scoresum = (_root.score + _root.cbonus) - _root.livesbonus;
}
};
Symbol 220 MovieClip Frame 1
if ((_root.levelup == 0) and (_root.fin == 0)) {
this.fire = this.fire + 1;
if (this.fire >= 30) {
this.fire = 0;
_root.firen = _root.firen + 1;
var thisfire = _root.attachMovie("firec", "firec" + _root.firen, _root.getNextHighestDepth(), {_x:this._x, _y:this._y});
if (_root.musicbut.nomusic._visible == false) {
_root.mitiro.start(0, 1);
}
_root["firec" + _root.firen].speed = 8;
_root["firec" + _root.firen].desx = _root.bola._x;
_root["firec" + _root.firen].desy = _root.bola._y;
_root["firec" + _root.firen].distot = Math.sqrt(((_root["firec" + _root.firen]._y - _root["firec" + _root.firen].desy) * (_root["firec" + _root.firen]._y - _root["firec" + _root.firen].desy)) + ((_root["firec" + _root.firen]._x - _root["firec" + _root.firen].desx) * (_root["firec" + _root.firen]._x - _root["firec" + _root.firen].desx)));
_root["firec" + _root.firen].sinx = (_root["firec" + _root.firen]._x - _root["firec" + _root.firen].desx) / _root["firec" + _root.firen].distot;
_root["firec" + _root.firen].cosy = (_root["firec" + _root.firen]._y - _root["firec" + _root.firen].desy) / _root["firec" + _root.firen].distot;
thisfire.onEnterFrame = function () {
this._x = this._x + ((-this.speed) * this.sinx);
this._y = this._y + ((-this.speed) * this.cosy);
if (this.hitTest(_root.bola.inbola)) {
if (_root.bola.activo == 1) {
if (_root.bola.inmune._visible == false) {
_root.bola._x = _root.bola.inicx;
_root.bola._y = _root.bola.inicy;
_root.bola.activo = 0;
_root.circulo1._x = _root.circulo1.inicx;
_root.circulo1._y = _root.circulo1.inicy;
_root.circulo2._x = _root.circulo2.inicx;
_root.circulo2._y = _root.circulo2.inicy;
_root.circulo3._x = _root.circulo3.inicx;
_root.circulo3._y = _root.circulo3.inicy;
_root.cirfire1._x = _root.cirfire1.inicx;
_root.cirfire1._y = _root.cirfire1.inicy;
_root.cirfire2._x = _root.cirfire2.inicx;
_root.cirfire2._y = _root.cirfire2.inicy;
_root.lives = _root.lives + 1;
}
}
}
if (this._x > 670) {
this.removeMovieClip();
}
if (this._x < -15) {
this.removeMovieClip();
}
if (this._y > 420) {
this.removeMovieClip();
}
if (this._x < -15) {
this.removeMovieClip();
}
if (_root.levelup == 1) {
this.removeMovieClip();
}
};
}
}
Symbol 241 MovieClip Frame 1
if (_root.bola.activo == 1) {
if (_root.levelup == 0) {
this.speed = 7;
this.desx = _root.bola._x;
this.desy = _root.bola._y;
this.distot = Math.sqrt(((this._y - this.desy) * (this._y - this.desy)) + ((this._x - this.desx) * (this._x - this.desx)));
this.sinx = (this._x - this.desx) / this.distot;
this.cosy = (this._y - this.desy) / this.distot;
this._x = this._x + ((-this.speed) * this.sinx);
this._y = this._y + ((-this.speed) * this.cosy);
}
}
Symbol 241 MovieClip Frame 2
if (_root.bola.activo == 1) {
if (_root.levelup == 0) {
this.speed = 7;
this.desx = _root.bola._x;
this.desy = _root.bola._y;
this.distot = Math.sqrt(((this._y - this.desy) * (this._y - this.desy)) + ((this._x - this.desx) * (this._x - this.desx)));
this.sinx = (this._x - this.desx) / this.distot;
this.cosy = (this._y - this.desy) / this.distot;
this._x = this._x + ((-this.speed) * this.sinx);
this._y = this._y + ((-this.speed) * this.cosy);
}
}
Symbol 253 MovieClip Frame 1
if (_root.bola.activo == 1) {
if (_root.levelup == 0) {
this.speed = 5;
this.desx = _root.bola._x;
this.desy = _root.bola._y;
this.distot = Math.sqrt(((this._y - this.desy) * (this._y - this.desy)) + ((this._x - this.desx) * (this._x - this.desx)));
this.sinx = (this._x - this.desx) / this.distot;
this.cosy = (this._y - this.desy) / this.distot;
this._x = this._x + ((-this.speed) * this.sinx);
this._y = this._y + ((-this.speed) * this.cosy);
}
}
if ((_root.levelup == 0) and (_root.fin == 0)) {
this.fire = this.fire + 1;
if (this.fire >= 30) {
this.fire = 0;
_root.cirfn = _root.cirfn + 1;
var thiscirfire = _root.attachMovie("cirbullet", "cirf" + _root.cirfn, _root.getNextHighestDepth(), {_x:this._x, _y:this._y});
if (_root.musicbut.nomusic._visible == false) {
_root.mitiroc.start(0, 1);
}
_root["cirf" + _root.cirfn].speed = 8;
_root["cirf" + _root.cirfn].desx = _root.bola._x;
_root["cirf" + _root.cirfn].desy = _root.bola._y;
_root["cirf" + _root.cirfn].distot = Math.sqrt(((_root["cirf" + _root.cirfn]._y - _root["cirf" + _root.cirfn].desy) * (_root["cirf" + _root.cirfn]._y - _root["cirf" + _root.cirfn].desy)) + ((_root["cirf" + _root.cirfn]._x - _root["cirf" + _root.cirfn].desx) * (_root["cirf" + _root.cirfn]._x - _root["cirf" + _root.cirfn].desx)));
_root["cirf" + _root.cirfn].sinx = (_root["cirf" + _root.cirfn]._x - _root["cirf" + _root.cirfn].desx) / _root["cirf" + _root.cirfn].distot;
_root["cirf" + _root.cirfn].cosy = (_root["cirf" + _root.cirfn]._y - _root["cirf" + _root.cirfn].desy) / _root["cirf" + _root.cirfn].distot;
thiscirfire.onEnterFrame = function () {
this._x = this._x + ((-this.speed) * this.sinx);
this._y = this._y + ((-this.speed) * this.cosy);
if (this.hitTest(_root.bola.inbola)) {
if (_root.bola.activo == 1) {
if (_root.bola.inmune._visible == false) {
_root.bola._x = _root.bola.inicx;
_root.bola._y = _root.bola.inicy;
_root.bola.activo = 0;
_root.cirfire1._x = _root.cirfire1.inicx;
_root.cirfire1._y = _root.cirfire1.inicy;
_root.cirfire2._x = _root.cirfire2.inicx;
_root.cirfire2._y = _root.cirfire2.inicy;
_root.circulo1._x = _root.circulo1.inicx;
_root.circulo1._y = _root.circulo1.inicy;
_root.circulo2._x = _root.circulo2.inicx;
_root.circulo2._y = _root.circulo2.inicy;
_root.lives = _root.lives + 1;
}
}
}
if (this._x > 670) {
this.removeMovieClip();
}
if (this._x < -15) {
this.removeMovieClip();
}
if (this._y > 420) {
this.removeMovieClip();
}
if (this._x < -15) {
this.removeMovieClip();
}
if (_root.levelup == 1) {
this.removeMovieClip();
}
};
}
}
Symbol 253 MovieClip Frame 2
if (_root.bola.activo == 1) {
if (_root.levelup == 0) {
this.speed = 5;
this.desx = _root.bola._x;
this.desy = _root.bola._y;
this.distot = Math.sqrt(((this._y - this.desy) * (this._y - this.desy)) + ((this._x - this.desx) * (this._x - this.desx)));
this.sinx = (this._x - this.desx) / this.distot;
this.cosy = (this._y - this.desy) / this.distot;
this._x = this._x + ((-this.speed) * this.sinx);
this._y = this._y + ((-this.speed) * this.cosy);
}
}
Symbol 284 MovieClip Frame 1
if (_root.bola.activo == 1) {
if (_root.levelup == 0) {
this.speed = 5;
this.desx = _root.bola._x;
this.desy = _root.bola._y;
this.distot = Math.sqrt(((this._y - this.desy) * (this._y - this.desy)) + ((this._x - this.desx) * (this._x - this.desx)));
this.sinx = (this._x - this.desx) / this.distot;
this.cosy = (this._y - this.desy) / this.distot;
this._x = this._x + ((-this.speed) * this.sinx);
this._y = this._y + ((-this.speed) * this.cosy);
}
}
if ((_root.levelup == 0) and (_root.fin == 0)) {
this.fire = this.fire + 1;
if (this.fire >= 15) {
this.fire = 0;
_root.dfiren = _root.dfiren + 1;
if (_root.musicbut.nomusic._visible == false) {
_root.mitirod.start(0, 1);
}
var thisdfire = _root.attachMovie("dfbullet", "dfb" + _root.dfiren, _root.getNextHighestDepth(), {_x:this._x, _y:this._y});
_root["dfb" + _root.dfiren].speed = 7;
_root["dfb" + _root.dfiren].desx = _root.bola._x + 50;
_root["dfb" + _root.dfiren].desy = _root.bola._y;
_root["dfb" + _root.dfiren].distot = Math.sqrt(((_root["dfb" + _root.dfiren]._y - _root["dfb" + _root.dfiren].desy) * (_root["dfb" + _root.dfiren]._y - _root["dfb" + _root.dfiren].desy)) + ((_root["dfb" + _root.dfiren]._x - _root["dfb" + _root.dfiren].desx) * (_root["dfb" + _root.dfiren]._x - _root["dfb" + _root.dfiren].desx)));
_root["dfb" + _root.dfiren].sinx = (_root["dfb" + _root.dfiren]._x - _root["dfb" + _root.dfiren].desx) / _root["dfb" + _root.dfiren].distot;
_root["dfb" + _root.dfiren].cosy = (_root["dfb" + _root.dfiren]._y - _root["dfb" + _root.dfiren].desy) / _root["dfb" + _root.dfiren].distot;
thisdfire.onEnterFrame = function () {
this._x = this._x + ((-this.speed) * this.sinx);
this._y = this._y + ((-this.speed) * this.cosy);
if (this.hitTest(_root.bola.inbola)) {
if (_root.bola.activo == 1) {
if (_root.bola.inmune._visible == false) {
_root.bola._x = _root.bola.inicx;
_root.bola._y = _root.bola.inicy;
_root.bola.activo = 0;
_root.cirfire1._x = _root.cirfire1.inicx;
_root.cirfire1._y = _root.cirfire1.inicy;
_root.cirfire2._x = _root.cirfire2.inicx;
_root.cirfire2._y = _root.cirfire2.inicy;
_root.circulo1._x = _root.circulo1.inicx;
_root.circulo1._y = _root.circulo1.inicy;
_root.circulo2._x = _root.circulo2.inicx;
_root.circulo2._y = _root.circulo2.inicy;
_root.df1._x = _root.df1.inicx;
_root.df1._y = _root.df1.inicy;
_root.df2._x = _root.df2.inicx;
_root.df2._y = _root.df2.inicy;
_root.lives = _root.lives + 1;
}
}
}
if (this._x > 670) {
this.removeMovieClip();
}
if (this._x < -15) {
this.removeMovieClip();
}
if (this._y > 420) {
this.removeMovieClip();
}
if (this._x < -15) {
this.removeMovieClip();
}
if (_root.levelup == 1) {
this.removeMovieClip();
}
};
_root.dfiren = _root.dfiren + 1;
var thisdfire2 = _root.attachMovie("dfbullet", "dfb" + _root.dfiren, _root.getNextHighestDepth(), {_x:this._x, _y:this._y});
_root["dfb" + _root.dfiren].speed = 7;
_root["dfb" + _root.dfiren].desx = _root.bola._x - 50;
_root["dfb" + _root.dfiren].desy = _root.bola._y;
_root["dfb" + _root.dfiren].distot = Math.sqrt(((_root["dfb" + _root.dfiren]._y - _root["dfb" + _root.dfiren].desy) * (_root["dfb" + _root.dfiren]._y - _root["dfb" + _root.dfiren].desy)) + ((_root["dfb" + _root.dfiren]._x - _root["dfb" + _root.dfiren].desx) * (_root["dfb" + _root.dfiren]._x - _root["dfb" + _root.dfiren].desx)));
_root["dfb" + _root.dfiren].sinx = (_root["dfb" + _root.dfiren]._x - _root["dfb" + _root.dfiren].desx) / _root["dfb" + _root.dfiren].distot;
_root["dfb" + _root.dfiren].cosy = (_root["dfb" + _root.dfiren]._y - _root["dfb" + _root.dfiren].desy) / _root["dfb" + _root.dfiren].distot;
thisdfire2.onEnterFrame = function () {
this._x = this._x + ((-this.speed) * this.sinx);
this._y = this._y + ((-this.speed) * this.cosy);
if (this.hitTest(_root.bola.inbola)) {
if (_root.bola.activo == 1) {
if (_root.bola.inmune._visible == false) {
_root.bola._x = _root.bola.inicx;
_root.bola._y = _root.bola.inicy;
_root.bola.activo = 0;
_root.cirfire1._x = _root.cirfire1.inicx;
_root.cirfire1._y = _root.cirfire1.inicy;
_root.cirfire2._x = _root.cirfire2.inicx;
_root.cirfire2._y = _root.cirfire2.inicy;
_root.circulo1._x = _root.circulo1.inicx;
_root.circulo1._y = _root.circulo1.inicy;
_root.circulo2._x = _root.circulo2.inicx;
_root.circulo2._y = _root.circulo2.inicy;
_root.df1._x = _root.df1.inicx;
_root.df1._y = _root.df1.inicy;
_root.df2._x = _root.df2.inicx;
_root.df2._y = _root.df2.inicy;
_root.lives = _root.lives + 1;
}
}
}
if (this._x > 670) {
this.removeMovieClip();
}
if (this._x < -15) {
this.removeMovieClip();
}
if (this._y > 420) {
this.removeMovieClip();
}
if (this._x < -15) {
this.removeMovieClip();
}
if (_root.levelup == 1) {
this.removeMovieClip();
}
};
}
}
Symbol 284 MovieClip Frame 2
if (_root.bola.activo == 1) {
if (_root.levelup == 0) {
this.speed = 7;
this.desx = _root.bola._x;
this.desy = _root.bola._y;
this.distot = Math.sqrt(((this._y - this.desy) * (this._y - this.desy)) + ((this._x - this.desx) * (this._x - this.desx)));
this.sinx = (this._x - this.desx) / this.distot;
this.cosy = (this._y - this.desy) / this.distot;
this._x = this._x + ((-this.speed) * this.sinx);
this._y = this._y + ((-this.speed) * this.cosy);
}
}
Symbol 304 MovieClip Frame 1
stop();
Symbol 304 MovieClip Frame 2
stop();