topical media & game development
[] readme course(s) preface I 1 2 II 3 4 III 5 6 7 IV 8 9 10 V 11 12 afterthought(s) appendix reference(s) example(s) resource(s) _

talk show tell print

animation-ch04-App.ax

animation-ch04-App.ax (swf ) [ flash ]


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


(C) A. Eliëns 2/9/2007

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.