Converting code to have custom classes help please

[COLOR=#000000][FONT=verdana]Hi I have the following code for a game how can I extract pieces of the god for example the enemy and make it run as an external class as via seperate .as file?

can you show me an example with my code

[/FONT][/COLOR]