function duplicateImage(from, target) {
var pixelData = new flash.display.BitmapData(from._width, from._height, true, 0×00FFFFFF)
pixelData.draw(from);
target.attachBitmap(pixelData, 1, true, true);
}
Pastie
Support Pastie
or read my
Pastie << self
blog
function duplicateImage(from, target) {
var pixelData = new flash.display.BitmapData(from._width, from._height, true, 0×00FFFFFF)
pixelData.draw(from);
target.attachBitmap(pixelData, 1, true, true);
}