title: Drawing line without mxml (with ActionScript)
body: <p>hai i want to draw a line with actionscript . Can anyone give me a hint
  Here is my code</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"&gt;
  
      &lt;fx:Script&gt;
          &lt;![CDATA[
  
          private function drawLine():void 
          {
              var myShape:Shape =new Shape();
              myShape=new Shape() ;
              myShape.graphics.lineStyle(2, 0x990000, .75);
              myShape.graphics.moveTo(10, 10);
  
              myShape.graphics.lineTo(25, 45);
  
          }
  
          ]]&gt;
      &lt;/fx:Script&gt;
  
  &lt;s:Button label="myButton" click="drawLine()"/&gt;
  </code></pre>
  
  <p>`</p>