What is the best way to render to a UIComponent which hasn\'t been added to the stage?  (I\'m using UIComponents as renderers for objects, and want to render ne         
        
What I've used in the past with much success is the following:
I've used this to snapshot various Flex charting components for use in PDF's generated on the server side. After getting the BitmapData I use the PNGEncoder or JPEGEncoder classes to compress the data, then encode it in Base64 before uploading to the server.