/ Published in: ActionScript 3
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
import flash.display.BitmapData; var bitmapData:BitmapData = new BitmapData(button.width, button.height, false, 0xFFFFFF); bitmapData.draw(button); // result: bitmapData
URL: http://blog.yoz.sk/2009/10/bitmap-bitmapdata-bytearray/