5 Replies Latest reply on Jul 12, 2010 6:31 AM by dafo_13

    No errors no warnings

    dafo_13

             
      <?xml version="1.0" encoding="utf-8"?>
      <!-- BitmapGraphicExample.mxml -->
      <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
      xmlns:s="library://ns.adobe.com/flex/spark">
      <fx:Script>
      <![CDATA[
      import flash.display.Bitmap;
      import flash.display.BitmapData;

      public var bmd:BitmapData=new BitmapData(100,100,true,0xFFFFFF);

      private function moveCircle(event:MouseEvent):void
      {var i:uint = 0;
                     for(;i<100;i++)
      bmd.setPixel32(200,i,0x60FF0000);
      }
      ]]>

      </fx:Script>
      <s:Button x="171" y="131" label="press" id="but" click="moveCircle(event)"/>
      </s:Application>

      so first i make this new bitmap of 100x100 size
      then when i click ze button i draw a red line in the middle of it
      ..or do i?

       

      all i see in the end is just a button which does nothing
      i know im doing somthing wrong.. just dont know what