Regarding generating the snapshot or thumbnail drawing... Sorry if
this isn't incredibly helpful, but I'd start with understanding
BitmapData stuff. To do the snapshot I'm guessing you're going to want
to capture the BitmapData of the Canvas (and that will include all the
components it contains) and then resize and redraw that in your
thumbnail component.
Maybe this link will help:
http://www.cynergysystems.com/blogs/page/andrewtrice?entry=realtime_thumbnails_of_flex_uicomponents
here's another one from the same guy's blog:
http://www.cynergysystems.com/blogs/page/andrewtrice?entry=flex_2_bitmapdata_tricks_and
I'm not entirely sure what happens if you try to get the bitmapData
object from a canvas that uses clipping. I'm guessing you'll want to
have one inner container component that doesn't clip the content, then
you'll want to get the bitmapData of that component, not the outer
Canvas. Hopefully bitmapData will return the entire bitmapData of a
container, even if not all of that container is visible on the screen.
Can anyone confirm this? I'm too lazy to try it out right now.
Doug
ecpmaz wrote:
Thank you for your code, but I do not simply work with pictures but
with an entire canvas filled with various components (textinputs,
buttons, pictures...etc)
Mathieu LEMAIRE