Re: [flexcoders] Thumbnail from screen (contents)

2009-03-01 Thread Weyert de Boer
Hi Erik,

You can easily make a "screenshot" of a MovieClip the following way:
import flash.display.*;

var thumbnailData: BitmapData =  new BitmapData( slide._width, 
slide._height, true, 0xFF );
thumbnailData.draw( slide, new Matrix() );

After you made a screenshot of the movieclip or you slide you can reuse 
it by it like:

slideThumb.attachBitmap( thumbnailData, 1);

Yours,
Weyert de Boer


[flexcoders] Thumbnail from screen (contents)

2009-03-01 Thread erikdebruin_nl
Hi all,

I'm trying to find a way to construct thumbnails from the screens of
my presentation tool. The application I'm working on takes an XML
files, constructs screens with text, images and video from it's
contents and displays these, much like PowerPoint would. I want to use
thumbnails of the various screens to give the user a visual indication
of what screen he will be navigating to. So I'm not only working with
the current display, but also "future" and "past" displays, an actual
resized screenshot will not do.

I figure I have to create instances of the texts and images, convert
these to bitmapdata (or somesuch), add them together, scale the result
and voila!

I have "Googled me senseless" but I can't figure it out :-(

Can anybody help?

Thanks in advance,

EdB