Flex Demo 1 - Basic Spark Components

View Flex Demo 1

This program demonstrates just how little code is needed to create a fully working Flex application! Of course, the components don't really do anything, but at least they are displaying. The following code is all that is needed to create this application:
<?xml version="1.0" encoding="utf-8"?> 
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
               xmlns:s="library://ns.adobe.com/flex/spark" 
               xmlns:mx="library://ns.adobe.com/flex/mx" 
               minWidth="955" minHeight="600" viewSourceURL="srcview_fbdemo_1/index.html"> 
    <s:Button x="26" y="16" label="Button That Does Nothing" enabled="true"/> 
    <s:Label x="203" y="16" text="Here's a Label" fontFamily="Georgia" fontSize="25" color="#971A1A"/> 
    <s:CheckBox x="111" y="49" label="Here's a Checkbox" fontSize="14"/> 
</s:Application>
A button, label, and checkbox, are placed on the screen, and that's about it, but doing the same thing in ActionScript would take much more code!