In Flash you can use SOLID colors, LINEAR GRADIENTS or RADIAL GRADIENTS.

See different ways of applying gradients to your raw shape or line (stroke).