Search the docs :). Looks like IBitmapDrawable is implemented by BitmapData and by DisplayObject. Since Application extends DisplayObject (well, eventually) it looks like you can do the following:
var bmp :BitmapData = new BitmapData(Application.application.width, Application.application.height, false); bmp.draw(Application.application); Just don't be surprised if your memory usage spikes and you get .OCX errors on machines with little memory. Michael Krotscheck Senior Developer RESOURCE INTERACTIVE <http://www.resource.com/> www.resource.com <http://www.resource.com> [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> ________________________________________________________________________ ____ This email and any of its attachments may contain Resource Interactive proprietary information, which is privileged, confidential and may be subject to copyright or other intellectual property rights belonging to Resource Interactive. This email is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient of this email, you are hereby notified that any dissemination, distribution, copying or action taken in relation to the contents of and attachments to this email is strictly prohibited and may be unlawful. If you have received this email in error, please notify the sender immediately and permanently delete the original and any copy of this email and any printout. ________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of aceoohay Sent: Monday, November 26, 2007 2:45 PM To: [email protected] Subject: [flexcoders] Re: Capture Flex screen to e-mail... Pardon my ignorance, but how do I "see whether Application implements IBitmapDrawable?" This application is pure Flex (AS3) running in a browser. I will do further research on bitmapData.draw(), and see if it is available to me. Paul --- In [email protected] <mailto:flexcoders%40yahoogroups.com> , "Mike Krotscheck" <[EMAIL PROTECTED]> wrote: > > The graphic nature of Flex makes it so your only real option is to > screenshot the application and mail it to them as a graphic. To do this > within Flex, see whether Application implements IBitmapDrawable- that > will allow you to use bitmapData.draw() and get the raw display data. > Once you have that, you've got two options: If you're in an AIR > application, you can just write the file to the desktop and have them > mail it. If not, you'll need to bounce it out to a server and mail it > from there. > > > > Make sure you call BitmapData.dispose() though- they're normally passed > over by garbage collection. > > > > Michael Krotscheck > > Senior Developer > > > RESOURCE INTERACTIVE > > <http://www.resource.com/ <http://www.resource.com/> > www.resource.com <http://www.resource.com <http://www.resource.com> > > > [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > > __________________________________________________________ ___ > ____ > This email and any of its attachments may contain Resource Interactive > proprietary information, which is privileged, confidential and may be > subject to copyright or other intellectual property rights belonging to > Resource Interactive. This email is intended solely for the use of the > individual or entity to which it is addressed. If you are not the > intended recipient of this email, you are hereby notified that any > dissemination, distribution, copying or action taken in relation to the > contents of and attachments to this email is strictly prohibited and may > be unlawful. If you have received this email in error, please notify the > sender immediately and permanently delete the original and any copy of > this email and any printout. > > > ________________________________ > > From: [email protected] <mailto:flexcoders%40yahoogroups.com> [mailto:[email protected] <mailto:flexcoders%40yahoogroups.com> ] On > Behalf Of aceoohay > Sent: Sunday, November 25, 2007 11:28 PM > To: [email protected] <mailto:flexcoders%40yahoogroups.com> > Subject: [flexcoders] Capture Flex screen to e-mail... > > > > In an application that I wrote years ago in ASP classic, I had a > button on every page that would allow the user to e-mail the current > page to someone. It would actually capture the innerHTML, and append > it to an e-mail and send it. The purpose was to capture a snapshot of > the data at the time the page was rendered. It was great for trouble > shooting customer complaints because we could see what they saw at > that particular time (thit was a 600 user DB app, and the data > changed frequently). > > I would like to do something similar in Flex. Yes I know I can have > the user do an Alt-Print-Screen, and paste it into word or paint, and > send the image, but I was hoping for something more seamless. > Something I coud put on each panel that the user could click, and it > would popup a box that would ask where to e-mail it to. It would > attach the current rendered panel to an e-mail as a jpg, pdf, png... > > I have the e-mail piece operational, but I haven't a clue where to > start on the capture piece. > > Anybody have any good ideas? > > Paul >

