Functions?

:cantlook:Figured out you are good at Flash :slight_smile: So heres is another task.

Lets say that i want to do falling balls on my Scene.
These balls all uses the same AS and at somehow i should use a function that i declare myself at frame 1 in my scene. Ive tried, over and over and over again different ways. But i dont know how to use functions.

function = fall(){
_y += 1
if (_y > 500)
{
_y = 0
}
}

In my world that seems like a fair code for my falling ball.
On my ball i add
onClipEvent(enterFrame){
fall()
}
:cantlook:
But that is not correct. Can somebody please help me out? :slight_smile: ( My problem is not to get a falling ball, lets say i want to make 2999 falling balls with dublicateMovieClip, etc) :))