codice:
onClipEvent(load){ 
var premuto = 0 
speed=20; //velocita navicella 
_root.palla._visible=false; //nasconde la pallottola 
counter=1; //numero spari utile per duplicare movieclip 
} 

onClipEvent (enterFrame) { 
speed=20; 
if (Key.isDown(Key.RIGHT)) { 
this._x+=speed; 
} 
else if (Key.isDown(Key.LEFT)) { 
this._x-=speed; 
} 
//qui vanno bene, o su o giù
if (Key.isDown(Key.DOWN)) { 
this._y+=speed; 
} 
else if (Key.isDown(Key.UP)) { 
this._y-=speed; 
} //anche fin qui è a posto, dx o sx
if (Key.isDown(Key.SPACE)) { //qui semplicemente togli l'else
if(premuto == 0){ 
counter++; 
_root.palla.duplicateMovieClip( "palla"+counter,counter ); 
_root["palla"+counter]._visible=true; 
premuto = 1 
} 
} 
if(Key.isDown(Key.SPACE) == false){ 
premuto = 0 
} 
}