Código :
onClipEvent(load){
tiempo=0;
contador=0;
_root.tiempo.play();
this.puntos=0;
_root.pausa = false;
}
onClipEvent(enterFrame){
if(Key.isDown(Key.ENTER)){
_root.pausa = !_root.pausa;
_root.tiempo.stop();
}
tiempo++;
if((contador++)&&(contador%80==0)){
invasor=attachMovie("burbuja1","{burbuja"+contador,contador);
invasor._x=Math.random()*1000;
invasor.onEnterFrame=function(){
this._y+=3;
if(this._y>=790){
removeMovieClip(this);
}
}
invasor.onMouseDown=function(){
if(this.hitTest(_root.cursor._x,_root.cursor._y,true)){
this.play();
puntos+=5;
}
}
}
if((contador++)&&(contador%130==0)){
invasor2=attachMovie("burbuja2","burbuja"+contador,contador*10);
invasor2._x=Math.random()*1000;
invasor2.onEnterFrame=function(){
this._y+=7;
if(this._y>=790){
removeMovieClip(this);
}
}
invasor2.onMouseDown=function(){
if(this.hitTest(_root.cursor._x,_root.cursor._y,true)){
this.play();
puntos+=10;
}
}
}
if((contador++)&&(contador%160==0)){
invasor3=attachMovie("burbuja3","burbuja"+contador,contador*20);
invasor3._x=Math.random()*1000;
invasor3.onEnterFrame=function(){
this._y+=9;
if(this._y>=790){
removeMovieClip(this);
}
}
invasor3.onMouseDown=function(){
if(this.hitTest(_root.cursor._x,_root.cursor._y,true)){
this.play();
puntos+=30;
}
}
}
if(puntos>=450){
trace("felicidades. Lo has conseguido");
_root.gotoAndPlay(11);
}
if((puntos<=450)&&(tiempo==1800)){
trace("otra vez será");
_root.gotoAndPlay(11);
}
}
