Actionscript 3 guide to constants and variables.
This article assumes you have a knowlege of Classes and instances.
public class Cow extends Mammal { protected static const NUM_LEGS:uint = 4; }
Let's dissect this cow, specifically, the NUM_LEGS constant.
There are 6 parts to this declaration:
protected
static
const
NUM_LEGS
:uint
4
I'm going to explain them backwards in order to go from simplest to most complicated.