Now to add a bit of action script.
Right click on you button "target" and select "Actions".

The actionscript window opens up.

Now navigate to "actions>on" in the left pane. By default relese will be selcted. This is the control syntax for the button.
Now we add to it.
We add the action to the event. Go to actions>evaluate on the left pane and double click it. This adds a blank line to the code. we shall use it to increment the value of variable "score". To do that type in "score++" in the expression field. This basicaly adds 1 to the value of score. Something like [score]=[score]+1.
You can also do the whole coding by going into expert mode [CTRL+E] and directly typing in the following:
Code:
on (release) {
score++;
}
in the right pane.
Now close the action window and go back to the main screen.
Now you can preveiw you efforts by pressing CTRL+ENTER. Close the preveiw to go back to the main screen
So far you have got a button that increments a scoreboard. Now to make it move a bit.
In the main screen click on the 30th frame in the time line:

Press F6 to insert a new keyframe. Click on the empty part of the stage to deselect everything then click on the cicle to select it. Move the circle as you like, once it is far enough, go to the timeline, right click the 30th frame and select create motion tween. this will cause you circle to be auto animated to the new spot from the old spot. Do this 5-6 time chancing directions repetedly.
Now to make your score board visible through out click on the last flame of you scoreboard layer and press F6. You should end up with something like this:
Finishing.
Create a new layer and go straight to one frame ahead of the last frame of your clip.
Now lets add a basic stop action to prevent the game from looping.
Right click on the last frame of the layer select actions

Finaly doubleclick on basic actions>stop

Now on reaching the last frame the clip will stop.
For the finishing lets add a play again button.
Create a new keyframe by presing F6. Add a Rectangular shape and place a text box over it. Type in "play again". Now select both and convert it to a button by pressing F8. Right click on the button and select "action". Now go into advanced mode [CTRL+E] and type in:
Code:
on (release) {
gotoAndPlay (1);
}
To refresh the scoreboard right click on the last frame, choose actions and go to advanced mode and type in:
score=0;
Your final last frame actions should be:
Heres the clip:
http://img463.imageshack.us/my.php?image=gameza8.swf
Click to play.
Click on the ball as many times as possible before the time runs out.
My high score:

How it did it? ive included a cheatcode.

press and hold 'q'.
Here's the sourcecode:
http://rapidshare.com/files/332634/game.fla.html
Add a little time and creativity and you can create your very own shoot em up'.
-----------------------------------------------------------------------------------------
I have split the above into 2 parts because there is a limit on the number of images that can be included in one post and immages were absolutely vital to the tutorial.
I you liked the tut jump once. If you didnt jump a hundred times.
Total time taken to upload immages and write the tut: 48mins.