These samples show Flex code. To create an application based on these samples, you need to compile them. The most common way is to use the Adobe Flash Builder 4.6 or 4.7 integrated development environment (IDE) to edit and compile. See Getting Started for more information.
The source code for all the Flex API samples are also available for download in the Flex API Samples repository on GitHub.