Is it possible to make some kind of 'dynamic' thumbnails for mxml components which I'm using in my application? By 'dynamic' I mean if I change some layout in mxml component, my thumbnail refreshes according to new layout without any screen capturing, photoshoping or similar =)
Edit:
I am using a FlexBook component, which makes a 'book' of mxml components (because each page has many independent interactions). I think that problem could be that bitmap data does not exist until I actually start to turn pages. But I would like to get bitmap data on creation complete.
Thanks!
Ok, let me try to explain little more because I see this is more complicated than I thought it will be..
I am using a FlexBook component, which makes a 'book' of mxml components (because each page has many independent interactions). I think that problem could be that bitmap data does not exist until I actually start to turn pages. But I would like to get bitmap data on creation complete...
Thanks for help!
m.
Here is a function I coded long time ago. It takes a
DisplayObject
(mxml components areDisplayObject
too), it will return aBitmap
of it.You may write a handler to listen for
Event.RENDER
of the mxml component to update theBitmap
when the component is changed.Another thing you can try on the FlexBook component is to set
creationPolicy="all"
...