On Tue, Jun 2, 2009 at 7:52 AM, Stephen More <[email protected]> wrote:
> The docs do not say much about IBitmapDrawable:
> http://livedocs.adobe.com/flex/3/langref/flash/display/IBitmapDrawable.html
>
> In your example lets say I create:
>    MyUIComponet extends UIComponet
>
> What method do I need to write in MyUIComponet such that I can respond
> back with an embeded image instead of  the rendering of the children
> of UIComponet when IBitmapDrawable is called ?

IBitmapDrawable is a "marker" interface. It doesn't actually have any
methods that you can implement.

Basically BitmapData.draw() will just capture the object as it would
appear on the screen. I don't believe that the IBitmapDrawable object
gets any sort of notification when it is being drawn. You can of
course notify it yourself so it can redraw itself a different way
before calling BitmapData.draw().

Manish

Reply via email to