Posted By

visualadvance on 05/21/09


Tagged

bitmapData as3 bitmap


Versions (?)

Who likes this?

9 people have marked this snippet as a favorite

vkord
sweetbabyyoung
flashinit
loric
czniach
TrentSkunk
shuchii
tspitzr
dug


AS3: Bitmap Data


 / Published in: ActionScript 3
 

I can never remember the simple code for quickly making a bitmap, so here it is.

  1. var bmpData:BitmapData = new BitmapData(800,800, true, 0x00000000);
  2. bmpData.draw (myClip);
  3. var bmp:Bitmap = new Bitmap(bmpData);
  4.  
  5. this.addChild(bmp);

Report this snippet  

You need to login to post a comment.