title: Flex 4.5.1 Add a simple Bitmap or Sprite on new application?
body: <p>Maybe it is a bad habit which I still have since Flash Professional, but I'm trying to add a simple Sprite or/and Bitmap I just created to an empty Application and it's not happening.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;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" 
                 creationComplete="application1_creationCompleteHandler(event)"&gt;
  
      &lt;fx:Script&gt;
          &lt;![CDATA[
              import mx.core.FlexGlobals;
              import mx.core.UIComponent;
              import mx.events.FlexEvent; 
  
  
              protected function application1_creationCompleteHandler( event : FlexEvent ) : void
              {
                  var s:Sprite = new Sprite();
                  s.graphics.beginFill( 0xFF0000, 0.5 );
                  s.graphics.drawRect( 0, 0, 100, 100 );
                  s.graphics.endFill();
  
                  this.addChild( s );
              }
  
          ]]&gt;
      &lt;/fx:Script&gt;
  &lt;/s:Application&gt;
  </code></pre>
  
  <p>Could someone tell me what I am doing wrong and help me correct it?</p>