Exporting Visible Elements in Flash

Taking screenshots on your flash application is easy as flash supports it out of the box. I have written a simple exporter class to do this: [java] package com.utils { import flash.display.BitmapData; import flash.geom.Matrix; import flash.utils.ByteArray; import mx.core.UIComponent; import mx.graphics.codec.PNGEncoder; import mx.utils.Base64Encoder; public class ImageExport { static public function export(elements:Array):Array …