topical media & game development

talk show tell print

animation-ch04-SimpleBitmap.ax

animation-ch04-SimpleBitmap.ax [swf] [flash] flex


  package
  {
          import flash.display.Sprite;
          import flash.display.Bitmap;
          import flash.display.BitmapData;
          
          public class @ax-animation-ch04-SimpleBitmap extends Sprite
          {
                  public function @ax-animation-ch04-SimpleBitmap()
                  {
                          init();
                  }
                  
                  private function init():void
                  {
                          var myBitmapData:BitmapData = new BitmapData(100, 100, false, 0xff0000);
                          var myBitmap:Bitmap = new Bitmap(myBitmapData);
                          addChild(myBitmap);
                  }
          }
  }
  


(C) Æliens 04/09/2009

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.