Below is a very simple Flash program. This is a program from our faucet movie (which you can see on the introduction to programming page. Below the program is an explanation of the program's syntax

This code is the program for a flash 'button.' In our faucet example, the buttons are the knobs on the faucet. Below is a breakdown of the syntax and punctuation for this program.
| Punctuation | Function | Syntax |
|---|---|---|
| Semi-Colon | Indicates the end of a single command. | someFunction(arguments); |
| Quote marks (Not above) |
Indicates an exact value. Often used to assign value to a variable. | x = "food"; |
| Parenthesis | Indicates either: an expression to be evaluated... | ( x != "food" ) |
| ...or an argument to be passed to a function. | someFunction(argument); | |
| Braces | Indicate the beginning and end of a control loop. | if (x != "food") { dontEat(x); } |