title: Flex 3 - Saving an image of a component
body: <p>Im currently trying to work the imageSnapshot function in flex. Ive been looking hard but I cant seem to find a solution to my problem. I wish to take a screenshot of one of my components, to capture the final output of my program, since a plain "printscreen" cuts off some of the output due to it scrolling. My current code looks like -</p>
  
  <pre><code>&lt;mx:ApplicationControlBar dock="true"&gt;
      &lt;mx:Button label="Take snapshot of Profile" 
          click="takeSnapshot();" /&gt;
  &lt;/mx:ApplicationControlBar&gt; 
  </code></pre>
  
  <p>Which when called does - </p>
  
  <pre><code>private function takeSnapshot(even:Event=null):void {
      var imageSnap:ImageSnapshot = ImageSnapshot.captureImage(viewstack1);
  </code></pre>
  
  <p>Now i think this is taking the image of the viewstack which I want... But Im stumped on what to do from here! Is it not possible to now just copy the image to the clipboard, or produce a new window in my browser with the entire image inside? If anyone has any other way to do this, suggestions would be wonderful.</p>
  
  <p>Thank you for your time.</p>