title: Taking a screenshot of browser/tab window in flex
body: <p>I'm quite new to Flex.</p>
  
  <p>I've looked into taking screenshots in flex and have found many links on google and here on stackoverflow for taking screenshots of components and stuff like this.  What I would like to do is take a screenshot of the entire tab in a browser window (or, failing that, the browser window itself or even just the screen).</p>
  
  <p>I'm able to take a screenshot of a viewstack because it implements the IBitmapDrawable interface.  But what if I want to take a screenshot of the browser tab as mentioned?  Is this possible and, if so, how?</p>
  
  <p>The parent of the viewstack is the application but when trying to pass Application.application to the draw method of the BitmapData class, I get the following error:</p>
  
  <p>Implicit coercion of a value with static type Object to a possibly unrelated type flash.display:IBitmapDrawable.</p>
  
  <p>Thanks in advance.</p>