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);}