How Actionscript 3 Classes Work
I need a little help understanding how classes work in Actionscript 3. I understand you start with "package" and why and then go to import any necessary libraries, as well as then naming the class and stating if it's public/private and extends anything. 

After that is what I don't understand. It seems you write "(public) function *class name*()

I don't understand why you do this and what goes in the curly brackets.

I've probably missed a bit of earlier reading because I've done a little reading but I can't seem to get it.

Could someone try explain it to me? Thanks.
How Actionscript 3 Classes Work
===

I need a little help understanding how classes work in Actionscript 3. I understand you start with "package" and why and then go to import any necessary libraries, as well as then naming the class and stating if it's public/private and extends anything. 

After that is what I don't understand. It seems you write "(public) function *class name*()

I don't understand why you do this and what goes in the curly brackets.

I've probably missed a bit of earlier reading because I've done a little reading but I can't seem to get it.

Could someone try explain it to me? Thanks.